aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/java/org/wordpress/android/ui/stats/models/InsightsLatestPostDetailsModel.java
blob: 7a70e9e89b7da865562aec9ab5fe9a6c10d76482 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package org.wordpress.android.ui.stats.models;

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


public class InsightsLatestPostDetailsModel extends BaseStatsModel {
    private String mBlogID;
    private int mViews;

    public InsightsLatestPostDetailsModel(String blogID, JSONObject response) throws JSONException {
        this.mBlogID = blogID;
        this.mViews = response.getInt("views");
    }

    public String getBlogID() {
        return mBlogID;
    }

    public int getPostViewsCount() {
        return mViews;
    }
}