|
1 | 1 | /* Options:
|
2 |
| -Date: 2021-03-18 17:23:07 |
| 2 | +Date: 2021-03-18 20:07:10 |
3 | 3 | SwiftVersion: 5.0
|
4 | 4 | Version: 5.105
|
5 | 5 | Tip: To override a DTO option, remove "//" prefix before updating
|
@@ -310,7 +310,7 @@ public class UpdateOrganizationMemberInvite : IReturn, IPut, Codable
|
310 | 310 | }
|
311 | 311 |
|
312 | 312 | // @Route("/posts", "GET")
|
313 |
| -public class QueryPosts : QueryDb_1<Post>, IReturn, IGet |
| 313 | +public class QueryPosts : QueryDb<Post>, IReturn, IGet |
314 | 314 | {
|
315 | 315 | public typealias Return = QueryResponse<Post>
|
316 | 316 |
|
@@ -698,7 +698,7 @@ public class GetAllTechnologies : IReturn, IGet, Codable
|
698 | 698 |
|
699 | 699 | // @Route("/technology/search")
|
700 | 700 | // @AutoQueryViewer(DefaultSearchField="Tier", DefaultSearchText="Data", DefaultSearchType="=", Description="Explore different Technologies", IconUrl="octicon:database", Title="Find Technologies")
|
701 |
| -public class FindTechnologies : QueryDb_2<Technology, TechnologyView>, IReturn, IGet |
| 701 | +public class FindTechnologies : QueryDb2<Technology, TechnologyView>, IReturn, IGet |
702 | 702 | {
|
703 | 703 | public typealias Return = QueryResponse<TechnologyView>
|
704 | 704 |
|
@@ -744,7 +744,7 @@ public class FindTechnologies : QueryDb_2<Technology, TechnologyView>, IReturn,
|
744 | 744 | }
|
745 | 745 |
|
746 | 746 | // @Route("/technology/query")
|
747 |
| -public class QueryTechnology : QueryDb_2<Technology, TechnologyView>, IReturn, IGet |
| 747 | +public class QueryTechnology : QueryDb2<Technology, TechnologyView>, IReturn, IGet |
748 | 748 | {
|
749 | 749 | public typealias Return = QueryResponse<TechnologyView>
|
750 | 750 |
|
@@ -897,7 +897,7 @@ public class HourlyTask : IReturn, IGet, Codable
|
897 | 897 |
|
898 | 898 | // @Route("/techstacks/search")
|
899 | 899 | // @AutoQueryViewer(DefaultSearchField="Description", DefaultSearchText="ServiceStack", DefaultSearchType="Contains", Description="Explore different Technology Stacks", IconUrl="material-icons:cloud", Title="Find Technology Stacks")
|
900 |
| -public class FindTechStacks : QueryDb_2<TechnologyStack, TechnologyStackView>, IReturn, IGet |
| 900 | +public class FindTechStacks : QueryDb2<TechnologyStack, TechnologyStackView>, IReturn, IGet |
901 | 901 | {
|
902 | 902 | public typealias Return = QueryResponse<TechnologyStackView>
|
903 | 903 |
|
@@ -943,7 +943,7 @@ public class FindTechStacks : QueryDb_2<TechnologyStack, TechnologyStackView>, I
|
943 | 943 | }
|
944 | 944 |
|
945 | 945 | // @Route("/techstacks/query")
|
946 |
| -public class QueryTechStacks : QueryDb_2<TechnologyStack, TechnologyStackView>, IReturn, IGet |
| 946 | +public class QueryTechStacks : QueryDb2<TechnologyStack, TechnologyStackView>, IReturn, IGet |
947 | 947 | {
|
948 | 948 | public typealias Return = QueryResponse<TechnologyStackView>
|
949 | 949 |
|
@@ -1320,7 +1320,7 @@ public class ImportUserVoiceSuggestion : IReturn, IPost, Codable
|
1320 | 1320 | }
|
1321 | 1321 |
|
1322 | 1322 | // @Route("/posts/comment", "GET")
|
1323 |
| -public class QueryPostComments : QueryDb_1<PostComment>, IReturn, IGet |
| 1323 | +public class QueryPostComments : QueryDb<PostComment>, IReturn, IGet |
1324 | 1324 | {
|
1325 | 1325 | public typealias Return = QueryResponse<PostComment>
|
1326 | 1326 |
|
@@ -1530,27 +1530,6 @@ public class UpdateOrganizationMemberInviteResponse : Codable
|
1530 | 1530 | required public init(){}
|
1531 | 1531 | }
|
1532 | 1532 |
|
1533 |
| -// @DataContract |
1534 |
| -public class QueryResponse<T : Codable> : Codable |
1535 |
| -{ |
1536 |
| - // @DataMember(Order=1) |
1537 |
| - public var offset:Int? |
1538 |
| - |
1539 |
| - // @DataMember(Order=2) |
1540 |
| - public var total:Int? |
1541 |
| - |
1542 |
| - // @DataMember(Order=3) |
1543 |
| - public var results:[T] = [] |
1544 |
| - |
1545 |
| - // @DataMember(Order=4) |
1546 |
| - public var meta:[String:String] = [:] |
1547 |
| - |
1548 |
| - // @DataMember(Order=5) |
1549 |
| - public var responseStatus:ResponseStatus? |
1550 |
| - |
1551 |
| - required public init(){} |
1552 |
| -} |
1553 |
| - |
1554 | 1533 | public class GetPostResponse : Codable
|
1555 | 1534 | {
|
1556 | 1535 | public var cache:Int?
|
@@ -2202,19 +2181,6 @@ public class PostCommentReportInfo : Codable
|
2202 | 2181 | required public init(){}
|
2203 | 2182 | }
|
2204 | 2183 |
|
2205 |
| -//public class QueryDb_1<T : Codable> : QueryBase |
2206 |
| -//{ |
2207 |
| -// required public init(){ super.init() } |
2208 |
| -// |
2209 |
| -// required public init(from decoder: Decoder) throws { |
2210 |
| -// try super.init(from: decoder) |
2211 |
| -// } |
2212 |
| -// |
2213 |
| -// public override func encode(to encoder: Encoder) throws { |
2214 |
| -// try super.encode(to: encoder) |
2215 |
| -// } |
2216 |
| -//} |
2217 |
| - |
2218 | 2184 | public class PostComment : Codable
|
2219 | 2185 | {
|
2220 | 2186 | public var id:Int?
|
@@ -2381,19 +2347,6 @@ public class TechnologyHistory : TechnologyBase
|
2381 | 2347 | }
|
2382 | 2348 | }
|
2383 | 2349 |
|
2384 |
| -//public class QueryDb_2<From : Codable, Into : Codable> : QueryBase |
2385 |
| -//{ |
2386 |
| -// required public init(){ super.init() } |
2387 |
| -// |
2388 |
| -// required public init(from decoder: Decoder) throws { |
2389 |
| -// try super.init(from: decoder) |
2390 |
| -// } |
2391 |
| -// |
2392 |
| -// public override func encode(to encoder: Encoder) throws { |
2393 |
| -// try super.encode(to: encoder) |
2394 |
| -// } |
2395 |
| -//} |
2396 |
| - |
2397 | 2350 | public class TechnologyView : Codable
|
2398 | 2351 | {
|
2399 | 2352 | public var id:Int?
|
@@ -2597,33 +2550,6 @@ public class UserVoiceComment : Codable
|
2597 | 2550 | required public init(){}
|
2598 | 2551 | }
|
2599 | 2552 |
|
2600 |
| -// @DataContract |
2601 |
| -public class QueryBase : Codable |
2602 |
| -{ |
2603 |
| - // @DataMember(Order=1) |
2604 |
| - public var skip:Int? |
2605 |
| - |
2606 |
| - // @DataMember(Order=2) |
2607 |
| - public var take:Int? |
2608 |
| - |
2609 |
| - // @DataMember(Order=3) |
2610 |
| - public var orderBy:String? |
2611 |
| - |
2612 |
| - // @DataMember(Order=4) |
2613 |
| - public var orderByDesc:String? |
2614 |
| - |
2615 |
| - // @DataMember(Order=5) |
2616 |
| - public var include:String? |
2617 |
| - |
2618 |
| - // @DataMember(Order=6) |
2619 |
| - public var fields:String? |
2620 |
| - |
2621 |
| - // @DataMember(Order=7) |
2622 |
| - public var meta:[String:String] = [:] |
2623 |
| - |
2624 |
| - required public init(){} |
2625 |
| -} |
2626 |
| - |
2627 | 2553 | public class TechnologyStackBase : Codable
|
2628 | 2554 | {
|
2629 | 2555 | public var id:Int?
|
|
0 commit comments