Created
July 15, 2018 14:17
-
-
Save klightspeed/e8e46944cdba4e4740855647f4903b04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RevenuesRequestInfo | |
{ | |
[JsonProperty("this")] | |
public string This { get; set; } | |
[JsonProperty("type")] | |
public string Type { get; set; } | |
[JsonProperty("user")] | |
public string User { get; set; } | |
} | |
public class RevenuesSummary | |
{ | |
[JsonProperty("currency")] | |
public string Currency { get; set; } | |
[JsonProperty("last_updated")] | |
public DateTime LastUpdated { get; set; } | |
[JsonProperty("total_earnings")] | |
public double TotalEarnings { get; set; } | |
[JsonProperty("max_earnings")] | |
public double MaxEarnings { get; set; } | |
[JsonProperty("viewed_hours")] | |
public double ViewedHours { get; set; } | |
[JsonProperty("unique_user")] | |
public int UniqueUser { get; set; } | |
} | |
public class RevenuesPlan | |
{ | |
[JsonProperty("plan_id")] | |
public string PlanId { get; set; } | |
[JsonProperty("plan_name")] | |
public string PlanName { get; set; } | |
[JsonProperty("plan_group_id")] | |
public object PlanGroupId { get; set; } | |
[JsonProperty("plan_user_id")] | |
public string PlanUserId { get; set; } | |
[JsonProperty("plan_countries")] | |
public string PlanCountries { get; set; } | |
[JsonProperty("plan_cpm")] | |
public string PlanCpm { get; set; } | |
[JsonProperty("plan_currency")] | |
public string PlanCurrency { get; set; } | |
[JsonProperty("plan_date_added")] | |
public DateTime PlanDateAdded { get; set; } | |
} | |
public class EarningsInfo | |
{ | |
[JsonProperty("earnings")] | |
public double Earnings { get; set; } | |
} | |
public class RevenuesTopContentInfo | |
{ | |
[JsonProperty("live")] | |
public EarningsInfo Live { get; set; } | |
[JsonProperty("video")] | |
public EarningsInfo Video { get; set; } | |
[JsonProperty("subscriptions")] | |
public EarningsInfo Subscriptions { get; set; } | |
} | |
public class RevenuesTopInfo | |
{ | |
[JsonProperty("countries")] | |
public Dictionary<string, double> Countries { get; set; } | |
[JsonProperty("content")] | |
public RevenuesTopContentInfo Content { get; set; } | |
} | |
public class RevenuesStatistics | |
{ | |
[JsonProperty("summary")] | |
public RevenuesSummary Summary { get; set; } | |
[JsonProperty("plans")] | |
public List<RevenuesPlan> Plans { get; set; } | |
[JsonProperty("timeline")] | |
public List<string> Timeline { get; set; } | |
[JsonProperty("daily")] | |
public Dictionary<string, EarningsInfo> Daily { get; set; } | |
[JsonProperty("groups")] | |
public Dictionary<string, List<object>> Groups { get; set; } | |
[JsonProperty("live")] | |
public Dictionary<string, double> Live { get; set; } | |
[JsonProperty("total")] | |
public Dictionary<string, double> Total { get; set; } | |
[JsonProperty("timeline_ads")] | |
public List<long> TimelineAds { get; set; } | |
[JsonProperty("subs")] | |
public Dictionary<string, double> Subs { get; set; } | |
[JsonProperty("top")] | |
public RevenuesTopInfo Top { get; set; } | |
} | |
public class RevenuesResponse | |
{ | |
[JsonProperty("request")] | |
public RevenuesRequestInfo Request {get;set;} | |
[JsonProperty("revenues")] | |
public RevenuesStatistics Revenues {get;set;} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment