-
Notifications
You must be signed in to change notification settings - Fork 0
/
activity.cr
47 lines (43 loc) · 1.11 KB
/
activity.cr
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
require "../helpers"
module Octokit
module Models
struct Activity
Octokit.rest_model(
timeline_url: String,
user_url: String,
current_user_public_url: String,
current_user_url: String,
current_user_actor_url: String,
current_user_organization_url: String,
current_user_organization_urls: Array(String)
)
struct FeedLink
Octokit.rest_model(
href: String,
type: String
)
end
struct Links
Octokit.rest_model(
timeline: FeedLink,
user: FeedLink,
current_user_public: FeedLink,
current_user: FeedLink,
current_user_actor: FeedLink,
current_user_organization: FeedLink,
current_user_organizations: FeedLink
)
end
struct Subscription
Octokit.rest_model(
subscribed: Bool,
ignored: Bool,
reason: String?,
created_at: {type: Time?, converter: Time::ISO8601Converter},
url: String,
repository_url: String?
)
end
end
end
end