aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/java/org/wordpress/android/ui/stats/models/TagModel.java
blob: 087c3db58aecf2937c9bb9f750ace08e1955e1a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package org.wordpress.android.ui.stats.models;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.Serializable;

public class TagModel implements Serializable {
    private String mName;
    private String mLink;
    private String mType;

    public TagModel(JSONObject tagJSON) throws JSONException {

        this.mName = tagJSON.getString("name");
        this.mType = tagJSON.getString("type");
        this.mLink = tagJSON.getString("link");
    }

    public String getName() {
        return mName;
    }

    public String getLink() {
        return mLink;
    }

    public String getType() {
        return mType;
    }
}