/* Options: Date: 2025-12-06 08:51:35 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://cochraneplus-api-dev.happen.zone //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: MessageComment.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/notificationcentre/comment", Verbs="POST") public static class MessageComment extends ApiServiceRequest implements IReturn { @ApiMember(IsRequired=true) public Integer systemUserMessageId = null; @ApiMember(IsRequired=true) public String comment = null; public Integer getSystemUserMessageId() { return systemUserMessageId; } public MessageComment setSystemUserMessageId(Integer value) { this.systemUserMessageId = value; return this; } public String getComment() { return comment; } public MessageComment setComment(String value) { this.comment = value; return this; } private static Object responseType = GetNotificationMessageResponse.class; public Object getResponseType() { return responseType; } } public static class GetNotificationMessageResponse extends ApiServiceResponse { public ArrayList messages = null; public Integer unreadCount = null; public ArrayList getMessages() { return messages; } public GetNotificationMessageResponse setMessages(ArrayList value) { this.messages = value; return this; } public Integer getUnreadCount() { return unreadCount; } public GetNotificationMessageResponse setUnreadCount(Integer value) { this.unreadCount = value; return this; } } public static class ApiServiceRequest implements IServiceRequest, IHasApiKey, IHasDeviceInfo { /** * The API Key required for authentication */ @ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true) public String apiKey = null; /** * Latitude of the user making this request */ @ApiMember(DataType="double", Description="Latitude of the user making this request") public Double latitude = null; /** * Longitude of the user making this request */ @ApiMember(DataType="double", Description="Longitude of the user making this request") public Double longitude = null; public String getApiKey() { return apiKey; } public ApiServiceRequest setApiKey(String value) { this.apiKey = value; return this; } public Double getLatitude() { return latitude; } public ApiServiceRequest setLatitude(Double value) { this.latitude = value; return this; } public Double getLongitude() { return longitude; } public ApiServiceRequest setLongitude(Double value) { this.longitude = value; return this; } } public static interface IServiceRequest { } public static interface IHasApiKey { public String apiKey = null; } public static interface IHasDeviceInfo { } public static class NotificationMessageData { public String title = null; public String content = null; public String sentBy = null; public Integer systemUserMessageId = null; public String dateSent = null; public String comment = null; public Boolean hasComment = null; public String commentDate = null; public Boolean hasAttachments = null; public ArrayList attachmentList = null; public Boolean hasRead = null; public String getTitle() { return title; } public NotificationMessageData setTitle(String value) { this.title = value; return this; } public String getContent() { return content; } public NotificationMessageData setContent(String value) { this.content = value; return this; } public String getSentBy() { return sentBy; } public NotificationMessageData setSentBy(String value) { this.sentBy = value; return this; } public Integer getSystemUserMessageId() { return systemUserMessageId; } public NotificationMessageData setSystemUserMessageId(Integer value) { this.systemUserMessageId = value; return this; } public String getDateSent() { return dateSent; } public NotificationMessageData setDateSent(String value) { this.dateSent = value; return this; } public String getComment() { return comment; } public NotificationMessageData setComment(String value) { this.comment = value; return this; } public Boolean isHasComment() { return hasComment; } public NotificationMessageData setHasComment(Boolean value) { this.hasComment = value; return this; } public String getCommentDate() { return commentDate; } public NotificationMessageData setCommentDate(String value) { this.commentDate = value; return this; } public Boolean isHasAttachments() { return hasAttachments; } public NotificationMessageData setHasAttachments(Boolean value) { this.hasAttachments = value; return this; } public ArrayList getAttachmentList() { return attachmentList; } public NotificationMessageData setAttachmentList(ArrayList value) { this.attachmentList = value; return this; } public Boolean isHasRead() { return hasRead; } public NotificationMessageData setHasRead(Boolean value) { this.hasRead = value; return this; } } public static class NotificationMessageAttachment { public Boolean isImage = null; public Boolean isPdf = null; public Boolean isWord = null; public Boolean isExcel = null; public String fileName = null; public String thumbnailUrl = null; public String fileUrl = null; public Boolean getIsImage() { return isImage; } public NotificationMessageAttachment setIsImage(Boolean value) { this.isImage = value; return this; } public Boolean getIsPdf() { return isPdf; } public NotificationMessageAttachment setIsPdf(Boolean value) { this.isPdf = value; return this; } public Boolean getIsWord() { return isWord; } public NotificationMessageAttachment setIsWord(Boolean value) { this.isWord = value; return this; } public Boolean getIsExcel() { return isExcel; } public NotificationMessageAttachment setIsExcel(Boolean value) { this.isExcel = value; return this; } public String getFileName() { return fileName; } public NotificationMessageAttachment setFileName(String value) { this.fileName = value; return this; } public String getThumbnailUrl() { return thumbnailUrl; } public NotificationMessageAttachment setThumbnailUrl(String value) { this.thumbnailUrl = value; return this; } public String getFileUrl() { return fileUrl; } public NotificationMessageAttachment setFileUrl(String value) { this.fileUrl = value; return this; } } public static class ApiServiceResponse implements IServiceResponse { public String description = null; public String heading = null; public Boolean wasSuccessful = null; public Object modelState = null; public String getDescription() { return description; } public ApiServiceResponse setDescription(String value) { this.description = value; return this; } public String getHeading() { return heading; } public ApiServiceResponse setHeading(String value) { this.heading = value; return this; } public Boolean isWasSuccessful() { return wasSuccessful; } public ApiServiceResponse setWasSuccessful(Boolean value) { this.wasSuccessful = value; return this; } public Object getModelState() { return modelState; } public ApiServiceResponse setModelState(Object value) { this.modelState = value; return this; } } }