-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGTLRObservedtimesQuery.m
More file actions
127 lines (100 loc) · 3.73 KB
/
Copy pathGTLRObservedtimesQuery.m
File metadata and controls
127 lines (100 loc) · 3.73 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// NOTE: This file was generated by the ServiceGenerator.
// ----------------------------------------------------------------------------
// API:
// observedtimes/v1
// Description:
// ObservedTimes API v1. This API allows the GET method to get a collection of
// observed times since the last time the user asked for a list and a POST
// method
// to record new times
#import "GTLRObservedtimesQuery.h"
#import "GTLRObservedtimesObjects.h"
@implementation GTLRObservedtimesQuery
@dynamic fields;
@end
@implementation GTLRObservedtimesQuery_ClockClockcheck
+ (instancetype)queryWithObject:(GTLRObservedtimes_RowTimePackageClockSyncRequest *)object {
if (object == nil) {
GTLR_DEBUG_ASSERT(object != nil, @"Got a nil object");
return nil;
}
NSString *pathURITemplate = @"clock";
GTLRObservedtimesQuery_ClockClockcheck *query =
[[self alloc] initWithPathURITemplate:pathURITemplate
HTTPMethod:@"POST"
pathParameterNames:nil];
query.bodyObject = object;
query.expectedObjectClass = [GTLRObservedtimes_RowTimePackageClockSyncReply class];
query.loggingName = @"observedtimes.clock.clockcheck";
return query;
}
@end
@implementation GTLRObservedtimesQuery_CrewList
@dynamic eventId;
+ (NSDictionary<NSString *, NSString *> *)parameterNameMap {
return @{ @"eventId" : @"event_id" };
}
+ (instancetype)query {
NSString *pathURITemplate = @"crew";
GTLRObservedtimesQuery_CrewList *query =
[[self alloc] initWithPathURITemplate:pathURITemplate
HTTPMethod:nil
pathParameterNames:nil];
query.expectedObjectClass = [GTLRObservedtimes_RowTimePackageCrewList class];
query.loggingName = @"observedtimes.crew.list";
return query;
}
@end
@implementation GTLRObservedtimesQuery_EventList
@dynamic searchString;
+ (NSDictionary<NSString *, NSString *> *)parameterNameMap {
return @{ @"searchString" : @"search_string" };
}
+ (instancetype)query {
NSString *pathURITemplate = @"event";
GTLRObservedtimesQuery_EventList *query =
[[self alloc] initWithPathURITemplate:pathURITemplate
HTTPMethod:nil
pathParameterNames:nil];
query.expectedObjectClass = [GTLRObservedtimes_RowTimePackageEventList class];
query.loggingName = @"observedtimes.event.list";
return query;
}
@end
@implementation GTLRObservedtimesQuery_TimesListtimes
@dynamic eventId, lastTimestamp;
+ (NSDictionary<NSString *, NSString *> *)parameterNameMap {
NSDictionary<NSString *, NSString *> *map = @{
@"eventId" : @"event_id",
@"lastTimestamp" : @"last_timestamp"
};
return map;
}
+ (instancetype)query {
NSString *pathURITemplate = @"times";
GTLRObservedtimesQuery_TimesListtimes *query =
[[self alloc] initWithPathURITemplate:pathURITemplate
HTTPMethod:nil
pathParameterNames:nil];
query.expectedObjectClass = [GTLRObservedtimes_RowTimePackageObservedTimeList class];
query.loggingName = @"observedtimes.times.listtimes";
return query;
}
@end
@implementation GTLRObservedtimesQuery_TimesTimecreate
+ (instancetype)queryWithObject:(GTLRObservedtimes_RowTimePackageObservedTime *)object {
if (object == nil) {
GTLR_DEBUG_ASSERT(object != nil, @"Got a nil object");
return nil;
}
NSString *pathURITemplate = @"times";
GTLRObservedtimesQuery_TimesTimecreate *query =
[[self alloc] initWithPathURITemplate:pathURITemplate
HTTPMethod:@"POST"
pathParameterNames:nil];
query.bodyObject = object;
query.expectedObjectClass = [GTLRObservedtimes_RowTimePackageObservedTime class];
query.loggingName = @"observedtimes.times.timecreate";
return query;
}
@end