|
| 1 | +/* Options: |
| 2 | +Date: 2017-02-12 03:54:05 |
| 3 | +Version: 4.00 |
| 4 | +Tip: To override a DTO option, remove "//" prefix before updating |
| 5 | +BaseUrl: http://chat.servicestack.net |
| 6 | +
|
| 7 | +Package: chat |
| 8 | +GlobalNamespace: chatdtos |
| 9 | +//AddPropertyAccessors: True |
| 10 | +//SettersReturnThis: True |
| 11 | +//AddServiceStackTypes: True |
| 12 | +//AddResponseStatus: False |
| 13 | +//AddDescriptionAsComments: True |
| 14 | +//AddImplicitVersion: |
| 15 | +//IncludeTypes: |
| 16 | +ExcludeTypes: Authenticate,AuthenticateResponse,AssignRoles,AssignRolesResponse,UnAssignRoles,UnAssignRolesResponse |
| 17 | +//TreatTypesAsStrings: |
| 18 | +//DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* |
| 19 | +*/ |
| 20 | + |
| 21 | +package chat; |
| 22 | + |
| 23 | +import java.math.*; |
| 24 | +import java.util.*; |
| 25 | +import net.servicestack.client.*; |
| 26 | +import com.google.gson.annotations.*; |
| 27 | +import com.google.gson.reflect.*; |
| 28 | + |
| 29 | +public class chatdtos |
| 30 | +{ |
| 31 | + |
| 32 | + @Route("/channels/{Channel}/raw") |
| 33 | + public static class PostRawToChannel implements IReturnVoid |
| 34 | + { |
| 35 | + public String from = null; |
| 36 | + public String toUserId = null; |
| 37 | + public String channel = null; |
| 38 | + public String message = null; |
| 39 | + public String selector = null; |
| 40 | + |
| 41 | + public String getFrom() { return from; } |
| 42 | + public PostRawToChannel setFrom(String value) { this.from = value; return this; } |
| 43 | + public String getToUserId() { return toUserId; } |
| 44 | + public PostRawToChannel setToUserId(String value) { this.toUserId = value; return this; } |
| 45 | + public String getChannel() { return channel; } |
| 46 | + public PostRawToChannel setChannel(String value) { this.channel = value; return this; } |
| 47 | + public String getMessage() { return message; } |
| 48 | + public PostRawToChannel setMessage(String value) { this.message = value; return this; } |
| 49 | + public String getSelector() { return selector; } |
| 50 | + public PostRawToChannel setSelector(String value) { this.selector = value; return this; } |
| 51 | + } |
| 52 | + |
| 53 | + @Route("/channels/{Channel}/chat") |
| 54 | + public static class PostChatToChannel implements IReturn<ChatMessage> |
| 55 | + { |
| 56 | + public String from = null; |
| 57 | + public String toUserId = null; |
| 58 | + public String channel = null; |
| 59 | + public String message = null; |
| 60 | + public String selector = null; |
| 61 | + |
| 62 | + public String getFrom() { return from; } |
| 63 | + public PostChatToChannel setFrom(String value) { this.from = value; return this; } |
| 64 | + public String getToUserId() { return toUserId; } |
| 65 | + public PostChatToChannel setToUserId(String value) { this.toUserId = value; return this; } |
| 66 | + public String getChannel() { return channel; } |
| 67 | + public PostChatToChannel setChannel(String value) { this.channel = value; return this; } |
| 68 | + public String getMessage() { return message; } |
| 69 | + public PostChatToChannel setMessage(String value) { this.message = value; return this; } |
| 70 | + public String getSelector() { return selector; } |
| 71 | + public PostChatToChannel setSelector(String value) { this.selector = value; return this; } |
| 72 | + private static Object responseType = ChatMessage.class; |
| 73 | + public Object getResponseType() { return responseType; } |
| 74 | + } |
| 75 | + |
| 76 | + @Route("/chathistory") |
| 77 | + public static class GetChatHistory implements IReturn<GetChatHistoryResponse> |
| 78 | + { |
| 79 | + public ArrayList<String> channels = null; |
| 80 | + public Long afterId = null; |
| 81 | + public Integer take = null; |
| 82 | + |
| 83 | + public ArrayList<String> getChannels() { return channels; } |
| 84 | + public GetChatHistory setChannels(ArrayList<String> value) { this.channels = value; return this; } |
| 85 | + public Long getAfterId() { return afterId; } |
| 86 | + public GetChatHistory setAfterId(Long value) { this.afterId = value; return this; } |
| 87 | + public Integer getTake() { return take; } |
| 88 | + public GetChatHistory setTake(Integer value) { this.take = value; return this; } |
| 89 | + private static Object responseType = GetChatHistoryResponse.class; |
| 90 | + public Object getResponseType() { return responseType; } |
| 91 | + } |
| 92 | + |
| 93 | + @Route("/reset") |
| 94 | + public static class ClearChatHistory implements IReturnVoid |
| 95 | + { |
| 96 | + |
| 97 | + } |
| 98 | + |
| 99 | + @Route("/reset-serverevents") |
| 100 | + public static class ResetServerEvents implements IReturnVoid |
| 101 | + { |
| 102 | + |
| 103 | + } |
| 104 | + |
| 105 | + @Route("/channels/{Channel}/object") |
| 106 | + public static class PostObjectToChannel implements IReturnVoid |
| 107 | + { |
| 108 | + public String toUserId = null; |
| 109 | + public String channel = null; |
| 110 | + public String selector = null; |
| 111 | + public CustomType customType = null; |
| 112 | + public SetterType setterType = null; |
| 113 | + |
| 114 | + public String getToUserId() { return toUserId; } |
| 115 | + public PostObjectToChannel setToUserId(String value) { this.toUserId = value; return this; } |
| 116 | + public String getChannel() { return channel; } |
| 117 | + public PostObjectToChannel setChannel(String value) { this.channel = value; return this; } |
| 118 | + public String getSelector() { return selector; } |
| 119 | + public PostObjectToChannel setSelector(String value) { this.selector = value; return this; } |
| 120 | + public CustomType getCustomType() { return customType; } |
| 121 | + public PostObjectToChannel setCustomType(CustomType value) { this.customType = value; return this; } |
| 122 | + public SetterType getSetterType() { return setterType; } |
| 123 | + public PostObjectToChannel setSetterType(SetterType value) { this.setterType = value; return this; } |
| 124 | + } |
| 125 | + |
| 126 | + @Route("/account") |
| 127 | + public static class GetUserDetails implements IReturn<GetUserDetailsResponse> |
| 128 | + { |
| 129 | + |
| 130 | + private static Object responseType = GetUserDetailsResponse.class; |
| 131 | + public Object getResponseType() { return responseType; } |
| 132 | + } |
| 133 | + |
| 134 | + public static class ChatMessage |
| 135 | + { |
| 136 | + public Long id = null; |
| 137 | + public String channel = null; |
| 138 | + public String fromUserId = null; |
| 139 | + public String fromName = null; |
| 140 | + public String displayName = null; |
| 141 | + public String message = null; |
| 142 | + public String userAuthId = null; |
| 143 | + @SerializedName("private") public Boolean Private = null; |
| 144 | + |
| 145 | + public Long getId() { return id; } |
| 146 | + public ChatMessage setId(Long value) { this.id = value; return this; } |
| 147 | + public String getChannel() { return channel; } |
| 148 | + public ChatMessage setChannel(String value) { this.channel = value; return this; } |
| 149 | + public String getFromUserId() { return fromUserId; } |
| 150 | + public ChatMessage setFromUserId(String value) { this.fromUserId = value; return this; } |
| 151 | + public String getFromName() { return fromName; } |
| 152 | + public ChatMessage setFromName(String value) { this.fromName = value; return this; } |
| 153 | + public String getDisplayName() { return displayName; } |
| 154 | + public ChatMessage setDisplayName(String value) { this.displayName = value; return this; } |
| 155 | + public String getMessage() { return message; } |
| 156 | + public ChatMessage setMessage(String value) { this.message = value; return this; } |
| 157 | + public String getUserAuthId() { return userAuthId; } |
| 158 | + public ChatMessage setUserAuthId(String value) { this.userAuthId = value; return this; } |
| 159 | + public Boolean isPrivate() { return Private; } |
| 160 | + public ChatMessage setPrivate(Boolean value) { this.Private = value; return this; } |
| 161 | + } |
| 162 | + |
| 163 | + public static class GetChatHistoryResponse |
| 164 | + { |
| 165 | + public ArrayList<ChatMessage> results = null; |
| 166 | + public ResponseStatus responseStatus = null; |
| 167 | + |
| 168 | + public ArrayList<ChatMessage> getResults() { return results; } |
| 169 | + public GetChatHistoryResponse setResults(ArrayList<ChatMessage> value) { this.results = value; return this; } |
| 170 | + public ResponseStatus getResponseStatus() { return responseStatus; } |
| 171 | + public GetChatHistoryResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } |
| 172 | + } |
| 173 | + |
| 174 | + public static class GetUserDetailsResponse |
| 175 | + { |
| 176 | + public String provider = null; |
| 177 | + public String userId = null; |
| 178 | + public String userName = null; |
| 179 | + public String fullName = null; |
| 180 | + public String displayName = null; |
| 181 | + public String firstName = null; |
| 182 | + public String lastName = null; |
| 183 | + public String company = null; |
| 184 | + public String email = null; |
| 185 | + public String phoneNumber = null; |
| 186 | + public Date birthDate = null; |
| 187 | + public String birthDateRaw = null; |
| 188 | + public String address = null; |
| 189 | + public String address2 = null; |
| 190 | + public String city = null; |
| 191 | + public String state = null; |
| 192 | + public String country = null; |
| 193 | + public String culture = null; |
| 194 | + public String gender = null; |
| 195 | + public String language = null; |
| 196 | + public String mailAddress = null; |
| 197 | + public String nickname = null; |
| 198 | + public String postalCode = null; |
| 199 | + public String timeZone = null; |
| 200 | + |
| 201 | + public String getProvider() { return provider; } |
| 202 | + public GetUserDetailsResponse setProvider(String value) { this.provider = value; return this; } |
| 203 | + public String getUserId() { return userId; } |
| 204 | + public GetUserDetailsResponse setUserId(String value) { this.userId = value; return this; } |
| 205 | + public String getUserName() { return userName; } |
| 206 | + public GetUserDetailsResponse setUserName(String value) { this.userName = value; return this; } |
| 207 | + public String getFullName() { return fullName; } |
| 208 | + public GetUserDetailsResponse setFullName(String value) { this.fullName = value; return this; } |
| 209 | + public String getDisplayName() { return displayName; } |
| 210 | + public GetUserDetailsResponse setDisplayName(String value) { this.displayName = value; return this; } |
| 211 | + public String getFirstName() { return firstName; } |
| 212 | + public GetUserDetailsResponse setFirstName(String value) { this.firstName = value; return this; } |
| 213 | + public String getLastName() { return lastName; } |
| 214 | + public GetUserDetailsResponse setLastName(String value) { this.lastName = value; return this; } |
| 215 | + public String getCompany() { return company; } |
| 216 | + public GetUserDetailsResponse setCompany(String value) { this.company = value; return this; } |
| 217 | + public String getEmail() { return email; } |
| 218 | + public GetUserDetailsResponse setEmail(String value) { this.email = value; return this; } |
| 219 | + public String getPhoneNumber() { return phoneNumber; } |
| 220 | + public GetUserDetailsResponse setPhoneNumber(String value) { this.phoneNumber = value; return this; } |
| 221 | + public Date getBirthDate() { return birthDate; } |
| 222 | + public GetUserDetailsResponse setBirthDate(Date value) { this.birthDate = value; return this; } |
| 223 | + public String getBirthDateRaw() { return birthDateRaw; } |
| 224 | + public GetUserDetailsResponse setBirthDateRaw(String value) { this.birthDateRaw = value; return this; } |
| 225 | + public String getAddress() { return address; } |
| 226 | + public GetUserDetailsResponse setAddress(String value) { this.address = value; return this; } |
| 227 | + public String getAddress2() { return address2; } |
| 228 | + public GetUserDetailsResponse setAddress2(String value) { this.address2 = value; return this; } |
| 229 | + public String getCity() { return city; } |
| 230 | + public GetUserDetailsResponse setCity(String value) { this.city = value; return this; } |
| 231 | + public String getState() { return state; } |
| 232 | + public GetUserDetailsResponse setState(String value) { this.state = value; return this; } |
| 233 | + public String getCountry() { return country; } |
| 234 | + public GetUserDetailsResponse setCountry(String value) { this.country = value; return this; } |
| 235 | + public String getCulture() { return culture; } |
| 236 | + public GetUserDetailsResponse setCulture(String value) { this.culture = value; return this; } |
| 237 | + public String getGender() { return gender; } |
| 238 | + public GetUserDetailsResponse setGender(String value) { this.gender = value; return this; } |
| 239 | + public String getLanguage() { return language; } |
| 240 | + public GetUserDetailsResponse setLanguage(String value) { this.language = value; return this; } |
| 241 | + public String getMailAddress() { return mailAddress; } |
| 242 | + public GetUserDetailsResponse setMailAddress(String value) { this.mailAddress = value; return this; } |
| 243 | + public String getNickname() { return nickname; } |
| 244 | + public GetUserDetailsResponse setNickname(String value) { this.nickname = value; return this; } |
| 245 | + public String getPostalCode() { return postalCode; } |
| 246 | + public GetUserDetailsResponse setPostalCode(String value) { this.postalCode = value; return this; } |
| 247 | + public String getTimeZone() { return timeZone; } |
| 248 | + public GetUserDetailsResponse setTimeZone(String value) { this.timeZone = value; return this; } |
| 249 | + } |
| 250 | + |
| 251 | + public static class CustomType |
| 252 | + { |
| 253 | + public Integer id = null; |
| 254 | + public String name = null; |
| 255 | + |
| 256 | + public Integer getId() { return id; } |
| 257 | + public CustomType setId(Integer value) { this.id = value; return this; } |
| 258 | + public String getName() { return name; } |
| 259 | + public CustomType setName(String value) { this.name = value; return this; } |
| 260 | + } |
| 261 | + |
| 262 | + public static class SetterType |
| 263 | + { |
| 264 | + public Integer id = null; |
| 265 | + public String name = null; |
| 266 | + |
| 267 | + public Integer getId() { return id; } |
| 268 | + public SetterType setId(Integer value) { this.id = value; return this; } |
| 269 | + public String getName() { return name; } |
| 270 | + public SetterType setName(String value) { this.name = value; return this; } |
| 271 | + } |
| 272 | + |
| 273 | +} |
0 commit comments