Required role: | API |
All Verbs | /api/Query/Journal |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
@AutoQueryViewer(Description="", IconUrl="octicon:database", Title="Journal")
public static class FindJournal extends QueryDb<JournalInstance>
{
}
public static class QueryDb<T> extends QueryBase
{
}
@DataContract
public static class QueryBase
{
@DataMember(Order=1)
public Integer Skip = null;
@DataMember(Order=2)
public Integer Take = null;
@DataMember(Order=3)
public String OrderBy = null;
@DataMember(Order=4)
public String OrderByDesc = null;
@DataMember(Order=5)
public String Include = null;
@DataMember(Order=6)
public String Fields = null;
@DataMember(Order=7)
public HashMap<String,String> Meta = null;
public Integer getSkip() { return Skip; }
public QueryBase setSkip(Integer value) { this.Skip = value; return this; }
public Integer getTake() { return Take; }
public QueryBase setTake(Integer value) { this.Take = value; return this; }
public String getOrderBy() { return OrderBy; }
public QueryBase setOrderBy(String value) { this.OrderBy = value; return this; }
public String getOrderByDesc() { return OrderByDesc; }
public QueryBase setOrderByDesc(String value) { this.OrderByDesc = value; return this; }
public String getInclude() { return Include; }
public QueryBase setInclude(String value) { this.Include = value; return this; }
public String getFields() { return Fields; }
public QueryBase setFields(String value) { this.Fields = value; return this; }
public HashMap<String,String> getMeta() { return Meta; }
public QueryBase setMeta(HashMap<String,String> value) { this.Meta = value; return this; }
}
public static class JournalInstance
{
public Integer JournalId = null;
public Date JournalDate = null;
public String Title = null;
public String Comment = null;
public Integer MessageType = null;
public String UserName = null;
public MemberInstance Member = null;
@References(MemberInstance.class)
public Integer MemberId = null;
public MessageInstance Message = null;
@References(MessageInstance.class)
public Integer MessageId = null;
public Date ViewedDate = null;
public Boolean Deleted = null;
public Boolean Demo = null;
public Boolean Permanent = null;
public Date alertDate = null;
public Integer AssignedToUserId = null;
public Boolean Completed = null;
public Date CompletedDate = null;
public Integer CreatedByUserId = null;
public Integer PostponedCount = null;
public Boolean SendSMSReminder = null;
public Boolean NoShow = null;
public Integer getJournalId() { return JournalId; }
public JournalInstance setJournalId(Integer value) { this.JournalId = value; return this; }
public Date getJournalDate() { return JournalDate; }
public JournalInstance setJournalDate(Date value) { this.JournalDate = value; return this; }
public String getTitle() { return Title; }
public JournalInstance setTitle(String value) { this.Title = value; return this; }
public String getComment() { return Comment; }
public JournalInstance setComment(String value) { this.Comment = value; return this; }
public Integer getMessageType() { return MessageType; }
public JournalInstance setMessageType(Integer value) { this.MessageType = value; return this; }
public String getUserName() { return UserName; }
public JournalInstance setUserName(String value) { this.UserName = value; return this; }
public MemberInstance getMember() { return Member; }
public JournalInstance setMember(MemberInstance value) { this.Member = value; return this; }
public Integer getMemberId() { return MemberId; }
public JournalInstance setMemberId(Integer value) { this.MemberId = value; return this; }
public MessageInstance getMessage() { return Message; }
public JournalInstance setMessage(MessageInstance value) { this.Message = value; return this; }
public Integer getMessageId() { return MessageId; }
public JournalInstance setMessageId(Integer value) { this.MessageId = value; return this; }
public Date getViewedDate() { return ViewedDate; }
public JournalInstance setViewedDate(Date value) { this.ViewedDate = value; return this; }
public Boolean isDeleted() { return Deleted; }
public JournalInstance setDeleted(Boolean value) { this.Deleted = value; return this; }
public Boolean isDemo() { return Demo; }
public JournalInstance setDemo(Boolean value) { this.Demo = value; return this; }
public Boolean isPermanent() { return Permanent; }
public JournalInstance setPermanent(Boolean value) { this.Permanent = value; return this; }
public Date getAlertDate() { return alertDate; }
public JournalInstance setAlertDate(Date value) { this.alertDate = value; return this; }
public Integer getAssignedToUserId() { return AssignedToUserId; }
public JournalInstance setAssignedToUserId(Integer value) { this.AssignedToUserId = value; return this; }
public Boolean isCompleted() { return Completed; }
public JournalInstance setCompleted(Boolean value) { this.Completed = value; return this; }
public Date getCompletedDate() { return CompletedDate; }
public JournalInstance setCompletedDate(Date value) { this.CompletedDate = value; return this; }
public Integer getCreatedByUserId() { return CreatedByUserId; }
public JournalInstance setCreatedByUserId(Integer value) { this.CreatedByUserId = value; return this; }
public Integer getPostponedCount() { return PostponedCount; }
public JournalInstance setPostponedCount(Integer value) { this.PostponedCount = value; return this; }
public Boolean isSendSMSReminder() { return SendSMSReminder; }
public JournalInstance setSendSMSReminder(Boolean value) { this.SendSMSReminder = value; return this; }
public Boolean isNoShow() { return NoShow; }
public JournalInstance setNoShow(Boolean value) { this.NoShow = value; return this; }
}
public static class MemberInstance
{
public Integer MemberId = null;
public Integer MemberType = null;
public String MembershipNumber = null;
public String CardNumber = null;
public String CompanyName = null;
public String Surname = null;
public String Forenames = null;
public String Title = null;
public Integer Gender = null;
public Date DateOfBirth = null;
public String Address1 = null;
public String Address2 = null;
public String City = null;
public String County = null;
public String Postcode = null;
public String HomePhone = null;
public String MobilePhone = null;
public String EmailAddress = null;
public Boolean EmailOptOut = null;
public Boolean SmsOptOut = null;
public Boolean PhoneOptOut = null;
public Boolean LetterOptOut = null;
public String DirectDebitAccountHolder = null;
public String DirectDebitAccountNumber = null;
public String DirectDebitSortCode = null;
public Date JoinedDate = null;
public String DirectDebitBankAddress = null;
public String FullName = null;
public String ExternalReference = null;
public byte[] Photo = null;
public Date PhotoModifiedDate = null;
public String Notes = null;
public Boolean Deleted = null;
public Boolean Demo = null;
public Boolean UseExternalStatus = null;
public Integer ExternalStatus = null;
public String FreeText = null;
public UUID MemberKey = null;
public BigDecimal Balance = null;
public BigDecimal CreditLimit = null;
public Date CreatedDate = null;
public Date ModifiedDate = null;
public Date DeletedDate = null;
public Integer ExternalSource = null;
public BigDecimal RetentionMetric = null;
public BigDecimal MonthlyAttendanceFrequency = null;
public Integer AssignedToUserId = null;
public Integer CreatedByUserId = null;
public Integer DeletedByUserId = null;
public LossReasonInstance LossReason = null;
@References(LossReasonInstance.class)
public Integer LossReasonId = null;
public Integer WonOrLost = null;
public Date WonOrLostDate = null;
public Boolean GiftAidPermission = null;
public Boolean PhotoPermission = null;
public Boolean FirstAidPermission = null;
public String EmergencyContact = null;
public UserInstance WonOrLostByUser = null;
@References(UserInstance.class)
public Integer WonOrLostByUserId = null;
public Date AgreedToTerms = null;
public Boolean OnlineBookingBanned = null;
public String Country = null;
public Date FingerprintEnrolled = null;
public BigDecimal LastPaymentAmount = null;
public String Pin = null;
public Integer ProspectingPoints = null;
public Integer AchievementPoints = null;
public String ParentForenames = null;
public String ParentSurname = null;
public Integer getMemberId() { return MemberId; }
public MemberInstance setMemberId(Integer value) { this.MemberId = value; return this; }
public Integer getMemberType() { return MemberType; }
public MemberInstance setMemberType(Integer value) { this.MemberType = value; return this; }
public String getMembershipNumber() { return MembershipNumber; }
public MemberInstance setMembershipNumber(String value) { this.MembershipNumber = value; return this; }
public String getCardNumber() { return CardNumber; }
public MemberInstance setCardNumber(String value) { this.CardNumber = value; return this; }
public String getCompanyName() { return CompanyName; }
public MemberInstance setCompanyName(String value) { this.CompanyName = value; return this; }
public String getSurname() { return Surname; }
public MemberInstance setSurname(String value) { this.Surname = value; return this; }
public String getForenames() { return Forenames; }
public MemberInstance setForenames(String value) { this.Forenames = value; return this; }
public String getTitle() { return Title; }
public MemberInstance setTitle(String value) { this.Title = value; return this; }
public Integer getGender() { return Gender; }
public MemberInstance setGender(Integer value) { this.Gender = value; return this; }
public Date getDateOfBirth() { return DateOfBirth; }
public MemberInstance setDateOfBirth(Date value) { this.DateOfBirth = value; return this; }
public String getAddress1() { return Address1; }
public MemberInstance setAddress1(String value) { this.Address1 = value; return this; }
public String getAddress2() { return Address2; }
public MemberInstance setAddress2(String value) { this.Address2 = value; return this; }
public String getCity() { return City; }
public MemberInstance setCity(String value) { this.City = value; return this; }
public String getCounty() { return County; }
public MemberInstance setCounty(String value) { this.County = value; return this; }
public String getPostcode() { return Postcode; }
public MemberInstance setPostcode(String value) { this.Postcode = value; return this; }
public String getHomePhone() { return HomePhone; }
public MemberInstance setHomePhone(String value) { this.HomePhone = value; return this; }
public String getMobilePhone() { return MobilePhone; }
public MemberInstance setMobilePhone(String value) { this.MobilePhone = value; return this; }
public String getEmailAddress() { return EmailAddress; }
public MemberInstance setEmailAddress(String value) { this.EmailAddress = value; return this; }
public Boolean isEmailOptOut() { return EmailOptOut; }
public MemberInstance setEmailOptOut(Boolean value) { this.EmailOptOut = value; return this; }
public Boolean isSmsOptOut() { return SmsOptOut; }
public MemberInstance setSmsOptOut(Boolean value) { this.SmsOptOut = value; return this; }
public Boolean isPhoneOptOut() { return PhoneOptOut; }
public MemberInstance setPhoneOptOut(Boolean value) { this.PhoneOptOut = value; return this; }
public Boolean isLetterOptOut() { return LetterOptOut; }
public MemberInstance setLetterOptOut(Boolean value) { this.LetterOptOut = value; return this; }
public String getDirectDebitAccountHolder() { return DirectDebitAccountHolder; }
public MemberInstance setDirectDebitAccountHolder(String value) { this.DirectDebitAccountHolder = value; return this; }
public String getDirectDebitAccountNumber() { return DirectDebitAccountNumber; }
public MemberInstance setDirectDebitAccountNumber(String value) { this.DirectDebitAccountNumber = value; return this; }
public String getDirectDebitSortCode() { return DirectDebitSortCode; }
public MemberInstance setDirectDebitSortCode(String value) { this.DirectDebitSortCode = value; return this; }
public Date getJoinedDate() { return JoinedDate; }
public MemberInstance setJoinedDate(Date value) { this.JoinedDate = value; return this; }
public String getDirectDebitBankAddress() { return DirectDebitBankAddress; }
public MemberInstance setDirectDebitBankAddress(String value) { this.DirectDebitBankAddress = value; return this; }
public String getFullName() { return FullName; }
public MemberInstance setFullName(String value) { this.FullName = value; return this; }
public String getExternalReference() { return ExternalReference; }
public MemberInstance setExternalReference(String value) { this.ExternalReference = value; return this; }
public byte[] getPhoto() { return Photo; }
public MemberInstance setPhoto(byte[] value) { this.Photo = value; return this; }
public Date getPhotoModifiedDate() { return PhotoModifiedDate; }
public MemberInstance setPhotoModifiedDate(Date value) { this.PhotoModifiedDate = value; return this; }
public String getNotes() { return Notes; }
public MemberInstance setNotes(String value) { this.Notes = value; return this; }
public Boolean isDeleted() { return Deleted; }
public MemberInstance setDeleted(Boolean value) { this.Deleted = value; return this; }
public Boolean isDemo() { return Demo; }
public MemberInstance setDemo(Boolean value) { this.Demo = value; return this; }
public Boolean isUseExternalStatus() { return UseExternalStatus; }
public MemberInstance setUseExternalStatus(Boolean value) { this.UseExternalStatus = value; return this; }
public Integer getExternalStatus() { return ExternalStatus; }
public MemberInstance setExternalStatus(Integer value) { this.ExternalStatus = value; return this; }
public String getFreeText() { return FreeText; }
public MemberInstance setFreeText(String value) { this.FreeText = value; return this; }
public UUID getMemberKey() { return MemberKey; }
public MemberInstance setMemberKey(UUID value) { this.MemberKey = value; return this; }
public BigDecimal getBalance() { return Balance; }
public MemberInstance setBalance(BigDecimal value) { this.Balance = value; return this; }
public BigDecimal getCreditLimit() { return CreditLimit; }
public MemberInstance setCreditLimit(BigDecimal value) { this.CreditLimit = value; return this; }
public Date getCreatedDate() { return CreatedDate; }
public MemberInstance setCreatedDate(Date value) { this.CreatedDate = value; return this; }
public Date getModifiedDate() { return ModifiedDate; }
public MemberInstance setModifiedDate(Date value) { this.ModifiedDate = value; return this; }
public Date getDeletedDate() { return DeletedDate; }
public MemberInstance setDeletedDate(Date value) { this.DeletedDate = value; return this; }
public Integer getExternalSource() { return ExternalSource; }
public MemberInstance setExternalSource(Integer value) { this.ExternalSource = value; return this; }
public BigDecimal getRetentionMetric() { return RetentionMetric; }
public MemberInstance setRetentionMetric(BigDecimal value) { this.RetentionMetric = value; return this; }
public BigDecimal getMonthlyAttendanceFrequency() { return MonthlyAttendanceFrequency; }
public MemberInstance setMonthlyAttendanceFrequency(BigDecimal value) { this.MonthlyAttendanceFrequency = value; return this; }
public Integer getAssignedToUserId() { return AssignedToUserId; }
public MemberInstance setAssignedToUserId(Integer value) { this.AssignedToUserId = value; return this; }
public Integer getCreatedByUserId() { return CreatedByUserId; }
public MemberInstance setCreatedByUserId(Integer value) { this.CreatedByUserId = value; return this; }
public Integer getDeletedByUserId() { return DeletedByUserId; }
public MemberInstance setDeletedByUserId(Integer value) { this.DeletedByUserId = value; return this; }
public LossReasonInstance getLossReason() { return LossReason; }
public MemberInstance setLossReason(LossReasonInstance value) { this.LossReason = value; return this; }
public Integer getLossReasonId() { return LossReasonId; }
public MemberInstance setLossReasonId(Integer value) { this.LossReasonId = value; return this; }
public Integer getWonOrLost() { return WonOrLost; }
public MemberInstance setWonOrLost(Integer value) { this.WonOrLost = value; return this; }
public Date getWonOrLostDate() { return WonOrLostDate; }
public MemberInstance setWonOrLostDate(Date value) { this.WonOrLostDate = value; return this; }
public Boolean isGiftAidPermission() { return GiftAidPermission; }
public MemberInstance setGiftAidPermission(Boolean value) { this.GiftAidPermission = value; return this; }
public Boolean isPhotoPermission() { return PhotoPermission; }
public MemberInstance setPhotoPermission(Boolean value) { this.PhotoPermission = value; return this; }
public Boolean isFirstAidPermission() { return FirstAidPermission; }
public MemberInstance setFirstAidPermission(Boolean value) { this.FirstAidPermission = value; return this; }
public String getEmergencyContact() { return EmergencyContact; }
public MemberInstance setEmergencyContact(String value) { this.EmergencyContact = value; return this; }
public UserInstance getWonOrLostByUser() { return WonOrLostByUser; }
public MemberInstance setWonOrLostByUser(UserInstance value) { this.WonOrLostByUser = value; return this; }
public Integer getWonOrLostByUserId() { return WonOrLostByUserId; }
public MemberInstance setWonOrLostByUserId(Integer value) { this.WonOrLostByUserId = value; return this; }
public Date getAgreedToTerms() { return AgreedToTerms; }
public MemberInstance setAgreedToTerms(Date value) { this.AgreedToTerms = value; return this; }
public Boolean isOnlineBookingBanned() { return OnlineBookingBanned; }
public MemberInstance setOnlineBookingBanned(Boolean value) { this.OnlineBookingBanned = value; return this; }
public String getCountry() { return Country; }
public MemberInstance setCountry(String value) { this.Country = value; return this; }
public Date getFingerprintEnrolled() { return FingerprintEnrolled; }
public MemberInstance setFingerprintEnrolled(Date value) { this.FingerprintEnrolled = value; return this; }
public BigDecimal getLastPaymentAmount() { return LastPaymentAmount; }
public MemberInstance setLastPaymentAmount(BigDecimal value) { this.LastPaymentAmount = value; return this; }
public String getPin() { return Pin; }
public MemberInstance setPin(String value) { this.Pin = value; return this; }
public Integer getProspectingPoints() { return ProspectingPoints; }
public MemberInstance setProspectingPoints(Integer value) { this.ProspectingPoints = value; return this; }
public Integer getAchievementPoints() { return AchievementPoints; }
public MemberInstance setAchievementPoints(Integer value) { this.AchievementPoints = value; return this; }
public String getParentForenames() { return ParentForenames; }
public MemberInstance setParentForenames(String value) { this.ParentForenames = value; return this; }
public String getParentSurname() { return ParentSurname; }
public MemberInstance setParentSurname(String value) { this.ParentSurname = value; return this; }
}
public static class LossReasonInstance
{
public Integer LossReasonId = null;
public String Reason = null;
public Boolean Deleted = null;
public Boolean Demo = null;
public Boolean Selectable = null;
public Integer getLossReasonId() { return LossReasonId; }
public LossReasonInstance setLossReasonId(Integer value) { this.LossReasonId = value; return this; }
public String getReason() { return Reason; }
public LossReasonInstance setReason(String value) { this.Reason = value; return this; }
public Boolean isDeleted() { return Deleted; }
public LossReasonInstance setDeleted(Boolean value) { this.Deleted = value; return this; }
public Boolean isDemo() { return Demo; }
public LossReasonInstance setDemo(Boolean value) { this.Demo = value; return this; }
public Boolean isSelectable() { return Selectable; }
public LossReasonInstance setSelectable(Boolean value) { this.Selectable = value; return this; }
}
public static class UserInstance
{
public Integer UserId = null;
public String UserName = null;
public String Name = null;
public String Email = null;
public String MobilePhone = null;
public Boolean Enabled = null;
public Date LastLogin = null;
public Date Created = null;
public Boolean Training = null;
public Boolean Deleted = null;
public Integer CoursesCompleted = null;
public Boolean DisplayHomeNotification = null;
public Boolean TwoFactorEnabled = null;
public Boolean EmailConfirmed = null;
public Boolean MobilePhoneConfirmed = null;
public Boolean Notifications = null;
public Date ChangePassword = null;
public Date Activated = null;
public Integer getUserId() { return UserId; }
public UserInstance setUserId(Integer value) { this.UserId = value; return this; }
public String getUserName() { return UserName; }
public UserInstance setUserName(String value) { this.UserName = value; return this; }
public String getName() { return Name; }
public UserInstance setName(String value) { this.Name = value; return this; }
public String getEmail() { return Email; }
public UserInstance setEmail(String value) { this.Email = value; return this; }
public String getMobilePhone() { return MobilePhone; }
public UserInstance setMobilePhone(String value) { this.MobilePhone = value; return this; }
public Boolean isEnabled() { return Enabled; }
public UserInstance setEnabled(Boolean value) { this.Enabled = value; return this; }
public Date getLastLogin() { return LastLogin; }
public UserInstance setLastLogin(Date value) { this.LastLogin = value; return this; }
public Date getCreated() { return Created; }
public UserInstance setCreated(Date value) { this.Created = value; return this; }
public Boolean isTraining() { return Training; }
public UserInstance setTraining(Boolean value) { this.Training = value; return this; }
public Boolean isDeleted() { return Deleted; }
public UserInstance setDeleted(Boolean value) { this.Deleted = value; return this; }
public Integer getCoursesCompleted() { return CoursesCompleted; }
public UserInstance setCoursesCompleted(Integer value) { this.CoursesCompleted = value; return this; }
public Boolean isDisplayHomeNotification() { return DisplayHomeNotification; }
public UserInstance setDisplayHomeNotification(Boolean value) { this.DisplayHomeNotification = value; return this; }
public Boolean isTwoFactorEnabled() { return TwoFactorEnabled; }
public UserInstance setTwoFactorEnabled(Boolean value) { this.TwoFactorEnabled = value; return this; }
public Boolean isEmailConfirmed() { return EmailConfirmed; }
public UserInstance setEmailConfirmed(Boolean value) { this.EmailConfirmed = value; return this; }
public Boolean isMobilePhoneConfirmed() { return MobilePhoneConfirmed; }
public UserInstance setMobilePhoneConfirmed(Boolean value) { this.MobilePhoneConfirmed = value; return this; }
public Boolean isNotifications() { return Notifications; }
public UserInstance setNotifications(Boolean value) { this.Notifications = value; return this; }
public Date getChangePassword() { return ChangePassword; }
public UserInstance setChangePassword(Date value) { this.ChangePassword = value; return this; }
public Date getActivated() { return Activated; }
public UserInstance setActivated(Date value) { this.Activated = value; return this; }
}
public static class MessageInstance
{
public Integer MessageId = null;
public Date DueDate = null;
public Date SentDate = null;
public Boolean Processed = null;
public Integer Failures = null;
public Integer InstanceId = null;
public String MessageSid = null;
public MessageTemplateInstance MessageTemplate = null;
@References(MessageTemplateInstance.class)
public Integer MessageTemplateId = null;
public Date OpenedDate = null;
public Date BouncedDate = null;
public Date DeliveredDate = null;
public Date UnsubscribedDate = null;
public Date SpamReportDate = null;
public UserInstance User = null;
@References(UserInstance.class)
public Integer UserId = null;
public Integer InstanceType = null;
public Integer getMessageId() { return MessageId; }
public MessageInstance setMessageId(Integer value) { this.MessageId = value; return this; }
public Date getDueDate() { return DueDate; }
public MessageInstance setDueDate(Date value) { this.DueDate = value; return this; }
public Date getSentDate() { return SentDate; }
public MessageInstance setSentDate(Date value) { this.SentDate = value; return this; }
public Boolean isProcessed() { return Processed; }
public MessageInstance setProcessed(Boolean value) { this.Processed = value; return this; }
public Integer getFailures() { return Failures; }
public MessageInstance setFailures(Integer value) { this.Failures = value; return this; }
public Integer getInstanceId() { return InstanceId; }
public MessageInstance setInstanceId(Integer value) { this.InstanceId = value; return this; }
public String getMessageSid() { return MessageSid; }
public MessageInstance setMessageSid(String value) { this.MessageSid = value; return this; }
public MessageTemplateInstance getMessageTemplate() { return MessageTemplate; }
public MessageInstance setMessageTemplate(MessageTemplateInstance value) { this.MessageTemplate = value; return this; }
public Integer getMessageTemplateId() { return MessageTemplateId; }
public MessageInstance setMessageTemplateId(Integer value) { this.MessageTemplateId = value; return this; }
public Date getOpenedDate() { return OpenedDate; }
public MessageInstance setOpenedDate(Date value) { this.OpenedDate = value; return this; }
public Date getBouncedDate() { return BouncedDate; }
public MessageInstance setBouncedDate(Date value) { this.BouncedDate = value; return this; }
public Date getDeliveredDate() { return DeliveredDate; }
public MessageInstance setDeliveredDate(Date value) { this.DeliveredDate = value; return this; }
public Date getUnsubscribedDate() { return UnsubscribedDate; }
public MessageInstance setUnsubscribedDate(Date value) { this.UnsubscribedDate = value; return this; }
public Date getSpamReportDate() { return SpamReportDate; }
public MessageInstance setSpamReportDate(Date value) { this.SpamReportDate = value; return this; }
public UserInstance getUser() { return User; }
public MessageInstance setUser(UserInstance value) { this.User = value; return this; }
public Integer getUserId() { return UserId; }
public MessageInstance setUserId(Integer value) { this.UserId = value; return this; }
public Integer getInstanceType() { return InstanceType; }
public MessageInstance setInstanceType(Integer value) { this.InstanceType = value; return this; }
}
public static class MessageTemplateInstance
{
public Integer MessageTemplateId = null;
public String Name = null;
public String Subject = null;
public String Body = null;
public Integer ReportId = null;
public Integer TemplateType = null;
public Date Created = null;
public Integer CreatedBy = null;
public Date Modified = null;
public Integer ModifiedBy = null;
public Date Deleted = null;
public Integer DeletedBy = null;
public Integer EventType = null;
public Integer ContentType = null;
public Boolean Hidden = null;
public Integer ParentMessageTemplateId = null;
public String InclusionTags = null;
public String ExclusionTags = null;
public Integer getMessageTemplateId() { return MessageTemplateId; }
public MessageTemplateInstance setMessageTemplateId(Integer value) { this.MessageTemplateId = value; return this; }
public String getName() { return Name; }
public MessageTemplateInstance setName(String value) { this.Name = value; return this; }
public String getSubject() { return Subject; }
public MessageTemplateInstance setSubject(String value) { this.Subject = value; return this; }
public String getBody() { return Body; }
public MessageTemplateInstance setBody(String value) { this.Body = value; return this; }
public Integer getReportId() { return ReportId; }
public MessageTemplateInstance setReportId(Integer value) { this.ReportId = value; return this; }
public Integer getTemplateType() { return TemplateType; }
public MessageTemplateInstance setTemplateType(Integer value) { this.TemplateType = value; return this; }
public Date getCreated() { return Created; }
public MessageTemplateInstance setCreated(Date value) { this.Created = value; return this; }
public Integer getCreatedBy() { return CreatedBy; }
public MessageTemplateInstance setCreatedBy(Integer value) { this.CreatedBy = value; return this; }
public Date getModified() { return Modified; }
public MessageTemplateInstance setModified(Date value) { this.Modified = value; return this; }
public Integer getModifiedBy() { return ModifiedBy; }
public MessageTemplateInstance setModifiedBy(Integer value) { this.ModifiedBy = value; return this; }
public Date getDeleted() { return Deleted; }
public MessageTemplateInstance setDeleted(Date value) { this.Deleted = value; return this; }
public Integer getDeletedBy() { return DeletedBy; }
public MessageTemplateInstance setDeletedBy(Integer value) { this.DeletedBy = value; return this; }
public Integer getEventType() { return EventType; }
public MessageTemplateInstance setEventType(Integer value) { this.EventType = value; return this; }
public Integer getContentType() { return ContentType; }
public MessageTemplateInstance setContentType(Integer value) { this.ContentType = value; return this; }
public Boolean isHidden() { return Hidden; }
public MessageTemplateInstance setHidden(Boolean value) { this.Hidden = value; return this; }
public Integer getParentMessageTemplateId() { return ParentMessageTemplateId; }
public MessageTemplateInstance setParentMessageTemplateId(Integer value) { this.ParentMessageTemplateId = value; return this; }
public String getInclusionTags() { return InclusionTags; }
public MessageTemplateInstance setInclusionTags(String value) { this.InclusionTags = value; return this; }
public String getExclusionTags() { return ExclusionTags; }
public MessageTemplateInstance setExclusionTags(String value) { this.ExclusionTags = value; return this; }
}
@DataContract
public static class QueryResponse<T>
{
@DataMember(Order=1)
public Integer Offset = null;
@DataMember(Order=2)
public Integer Total = null;
@DataMember(Order=3)
public ArrayList<T> Results = null;
@DataMember(Order=4)
public HashMap<String,String> Meta = null;
@DataMember(Order=5)
public ResponseStatus ResponseStatus = null;
public Integer getOffset() { return Offset; }
public QueryResponse<T> setOffset(Integer value) { this.Offset = value; return this; }
public Integer getTotal() { return Total; }
public QueryResponse<T> setTotal(Integer value) { this.Total = value; return this; }
public ArrayList<T> getResults() { return Results; }
public QueryResponse<T> setResults(ArrayList<T> value) { this.Results = value; return this; }
public HashMap<String,String> getMeta() { return Meta; }
public QueryResponse<T> setMeta(HashMap<String,String> value) { this.Meta = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public QueryResponse<T> setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/Query/Journal HTTP/1.1
Host: api.clubmanagercentral.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Skip: 0,
Take: 0,
OrderBy: String,
OrderByDesc: String,
Include: String,
Fields: String,
Meta:
{
String: String
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Offset: 0, Total: 0, Results: [ { JournalId: 0, JournalDate: 0001-01-01, Title: String, Comment: String, MessageType: 0, UserName: String, Member: { MemberId: 0, MemberType: 0, MembershipNumber: String, CardNumber: String, CompanyName: String, Surname: String, Forenames: String, Title: String, Gender: 0, DateOfBirth: 0001-01-01, Address1: String, Address2: String, City: String, County: String, Postcode: String, HomePhone: String, MobilePhone: String, EmailAddress: String, EmailOptOut: False, SmsOptOut: False, PhoneOptOut: False, LetterOptOut: False, DirectDebitAccountHolder: String, DirectDebitAccountNumber: String, DirectDebitSortCode: String, JoinedDate: 0001-01-01, DirectDebitBankAddress: String, FullName: String, ExternalReference: String, Photo: AA==, PhotoModifiedDate: 0001-01-01, Notes: String, Deleted: False, Demo: False, UseExternalStatus: False, ExternalStatus: 0, FreeText: String, MemberKey: 00000000000000000000000000000000, Balance: 0, CreditLimit: 0, CreatedDate: 0001-01-01, ModifiedDate: 0001-01-01, DeletedDate: 0001-01-01, ExternalSource: 0, RetentionMetric: 0, MonthlyAttendanceFrequency: 0, AssignedToUserId: 0, CreatedByUserId: 0, DeletedByUserId: 0, LossReason: { LossReasonId: 0, Reason: String, Deleted: False, Demo: False, Selectable: False }, LossReasonId: 0, WonOrLost: 0, WonOrLostDate: 0001-01-01, GiftAidPermission: False, PhotoPermission: False, FirstAidPermission: False, EmergencyContact: String, WonOrLostByUser: { UserId: 0, UserName: String, Name: String, Email: String, MobilePhone: String, Enabled: False, LastLogin: 0001-01-01, Created: 0001-01-01, Training: False, Deleted: False, CoursesCompleted: 0, DisplayHomeNotification: False, TwoFactorEnabled: False, EmailConfirmed: False, MobilePhoneConfirmed: False, Notifications: False, ChangePassword: 0001-01-01, Activated: 0001-01-01 }, WonOrLostByUserId: 0, AgreedToTerms: 0001-01-01, OnlineBookingBanned: False, Country: String, FingerprintEnrolled: 0001-01-01, LastPaymentAmount: 0, Pin: String, ProspectingPoints: 0, AchievementPoints: 0, ParentForenames: String, ParentSurname: String }, MemberId: 0, Message: { MessageId: 0, DueDate: 0001-01-01, SentDate: 0001-01-01, Processed: False, Failures: 0, InstanceId: 0, MessageSid: String, MessageTemplate: { MessageTemplateId: 0, Name: String, Subject: String, Body: String, ReportId: 0, TemplateType: 0, Created: 0001-01-01, CreatedBy: 0, Modified: 0001-01-01, ModifiedBy: 0, Deleted: 0001-01-01, DeletedBy: 0, EventType: 0, ContentType: 0, Hidden: False, ParentMessageTemplateId: 0, InclusionTags: String, ExclusionTags: String }, MessageTemplateId: 0, OpenedDate: 0001-01-01, BouncedDate: 0001-01-01, DeliveredDate: 0001-01-01, UnsubscribedDate: 0001-01-01, SpamReportDate: 0001-01-01, User: { UserId: 0, UserName: String, Name: String, Email: String, MobilePhone: String, Enabled: False, LastLogin: 0001-01-01, Created: 0001-01-01, Training: False, Deleted: False, CoursesCompleted: 0, DisplayHomeNotification: False, TwoFactorEnabled: False, EmailConfirmed: False, MobilePhoneConfirmed: False, Notifications: False, ChangePassword: 0001-01-01, Activated: 0001-01-01 }, UserId: 0, InstanceType: 0 }, MessageId: 0, ViewedDate: 0001-01-01, Deleted: False, Demo: False, Permanent: False, alertDate: 0001-01-01, AssignedToUserId: 0, Completed: False, CompletedDate: 0001-01-01, CreatedByUserId: 0, PostponedCount: 0, SendSMSReminder: False, NoShow: False } ], Meta: { String: String }, ResponseStatus: { ErrorCode: String, Message: String, StackTrace: String, Errors: [ { ErrorCode: String, FieldName: String, Message: String, Meta: { String: String } } ], Meta: { String: String } } }