Skip to content

Instantly share code, notes, and snippets.

@klightspeed
Created July 15, 2018 14:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klightspeed/e8e46944cdba4e4740855647f4903b04 to your computer and use it in GitHub Desktop.
Save klightspeed/e8e46944cdba4e4740855647f4903b04 to your computer and use it in GitHub Desktop.
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