Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion PexelsNet/Page.cs
Original file line number Diff line number Diff line change
@@ -1,27 +1,53 @@
using System.Collections.Generic;
using System.Collections.Generic;
using Newtonsoft.Json;

namespace PexelsNet
{
public class Source
{
[JsonProperty("original")]
public string Original { get; set; }

[JsonProperty("large")]
public string Large { get; set; }

[JsonProperty("medium")]
public string Medium { get; set; }

[JsonProperty("small")]
public string Small { get; set; }

[JsonProperty("portrait")]
public string Portrait { get; set; }

[JsonProperty("square")]
public string Square { get; set; }

[JsonProperty("landscape")]
public string Landscape { get; set; }

[JsonProperty("tiny")]
public string Tiny { get; set; }
}

public class Photo
{
[JsonProperty("id")]
public int Id { get; set; }

[JsonProperty("width")]
public int Width { get; set; }

[JsonProperty("height")]
public int Height { get; set; }

[JsonProperty("url")]
public string Url { get; set; }

[JsonProperty("photographer")]
public string Photographer { get; set; }

[JsonProperty("src")]
public Source Src { get; set; }
}

Expand All @@ -39,6 +65,7 @@ public class Page
[JsonProperty("next_page")]
public string NextPage { get; set; }

[JsonProperty("photos")]
public List<Photo> Photos { get; set; }
}
}