-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQueries.cs
More file actions
26 lines (24 loc) · 795 Bytes
/
Queries.cs
File metadata and controls
26 lines (24 loc) · 795 Bytes
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
namespace dotpics
{
public class Queries
{
public Image GetImage(int id) =>
new Image
{
URL = "example.com/images/example.jpg",
ThumbnailUrl = "example.com/thumnails/example.jpg",
Title = "Example Image Title",
Description = "Example image description...",
Tags = ["Tag 1", "Tag 2"]
};
public Album GetAlbum(int id) =>
new Album
{
Title = "Example Album Title",
Description = "Exanple album description...",
Images = [GetImage(0), GetImage(1), GetImage(2)]
};
public Image[] SearchImagesByTag() =>
[GetImage(0), GetImage(1)];
}
}