| POST,GET | /api/Security/GetUserByBranch |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class User
{
public Integer UserId = null;
public String UserName = null;
public String Name = null;
public String Email = null;
public Boolean EmailConfirmed = null;
public String MobilePhone = null;
public Boolean MobilePhoneConfirmed = null;
public String ConfirmPassword = null;
public Boolean Enabled = null;
public Boolean Training = null;
public Date LastLogin = null;
public Date Created = null;
public Integer BranchId = null;
public Integer ParentBranchId = null;
public Integer MemberId = null;
public ArrayList<String> Roles = null;
public TrainingCourse CoursesCompleted = null;
public Boolean DisplayHomeNotification = null;
public Boolean TwoFactorEnabled = null;
public String BranchName = null;
public UUID BranchKey = null;
public Boolean Notifications = null;
public Date ChangePassword = null;
public Date Activated = null;
public String TwoFactorChannel = null;
public Integer getUserId() { return UserId; }
public User setUserId(Integer value) { this.UserId = value; return this; }
public String getUserName() { return UserName; }
public User setUserName(String value) { this.UserName = value; return this; }
public String getName() { return Name; }
public User setName(String value) { this.Name = value; return this; }
public String getEmail() { return Email; }
public User setEmail(String value) { this.Email = value; return this; }
public Boolean isEmailConfirmed() { return EmailConfirmed; }
public User setEmailConfirmed(Boolean value) { this.EmailConfirmed = value; return this; }
public String getMobilePhone() { return MobilePhone; }
public User setMobilePhone(String value) { this.MobilePhone = value; return this; }
public Boolean isMobilePhoneConfirmed() { return MobilePhoneConfirmed; }
public User setMobilePhoneConfirmed(Boolean value) { this.MobilePhoneConfirmed = value; return this; }
public String getConfirmPassword() { return ConfirmPassword; }
public User setConfirmPassword(String value) { this.ConfirmPassword = value; return this; }
public Boolean isEnabled() { return Enabled; }
public User setEnabled(Boolean value) { this.Enabled = value; return this; }
public Boolean isTraining() { return Training; }
public User setTraining(Boolean value) { this.Training = value; return this; }
public Date getLastLogin() { return LastLogin; }
public User setLastLogin(Date value) { this.LastLogin = value; return this; }
public Date getCreated() { return Created; }
public User setCreated(Date value) { this.Created = value; return this; }
public Integer getBranchId() { return BranchId; }
public User setBranchId(Integer value) { this.BranchId = value; return this; }
public Integer getParentBranchId() { return ParentBranchId; }
public User setParentBranchId(Integer value) { this.ParentBranchId = value; return this; }
public Integer getMemberId() { return MemberId; }
public User setMemberId(Integer value) { this.MemberId = value; return this; }
public ArrayList<String> getRoles() { return Roles; }
public User setRoles(ArrayList<String> value) { this.Roles = value; return this; }
public TrainingCourse getCoursesCompleted() { return CoursesCompleted; }
public User setCoursesCompleted(TrainingCourse value) { this.CoursesCompleted = value; return this; }
public Boolean isDisplayHomeNotification() { return DisplayHomeNotification; }
public User setDisplayHomeNotification(Boolean value) { this.DisplayHomeNotification = value; return this; }
public Boolean isTwoFactorEnabled() { return TwoFactorEnabled; }
public User setTwoFactorEnabled(Boolean value) { this.TwoFactorEnabled = value; return this; }
public String getBranchName() { return BranchName; }
public User setBranchName(String value) { this.BranchName = value; return this; }
public UUID getBranchKey() { return BranchKey; }
public User setBranchKey(UUID value) { this.BranchKey = value; return this; }
public Boolean isNotifications() { return Notifications; }
public User setNotifications(Boolean value) { this.Notifications = value; return this; }
public Date getChangePassword() { return ChangePassword; }
public User setChangePassword(Date value) { this.ChangePassword = value; return this; }
public Date getActivated() { return Activated; }
public User setActivated(Date value) { this.Activated = value; return this; }
public String getTwoFactorChannel() { return TwoFactorChannel; }
public User setTwoFactorChannel(String value) { this.TwoFactorChannel = value; return this; }
}
@Flags()
public static enum TrainingCourse
{
@SerializedName("1") AddMember(1),
@SerializedName("2") EditMember(2),
@SerializedName("4") AddMembership(4),
@SerializedName("8") Journal(8),
@SerializedName("16") Home(16),
@SerializedName("32") Till(32),
@SerializedName("64") Accounting(64),
@SerializedName("128") UnexplainedPayments(128),
@SerializedName("256") Bookings(256),
@SerializedName("512") Users(512);
private final int value;
TrainingCourse(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
}
Java SecurityService.GetUserByBranchRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/Security/GetUserByBranch HTTP/1.1
Host: api.clubmanagercentral.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"UserId":0,"UserName":"String","Name":"String","Email":"String","EmailConfirmed":false,"MobilePhone":"String","MobilePhoneConfirmed":false,"ConfirmPassword":"String","Enabled":false,"Training":false,"LastLogin":"0001-01-01T00:00:00.0000000","Created":"0001-01-01T00:00:00.0000000","BranchId":0,"ParentBranchId":0,"MemberId":0,"Roles":["String"],"CoursesCompleted":1,"DisplayHomeNotification":false,"TwoFactorEnabled":false,"BranchName":"String","BranchKey":"00000000000000000000000000000000","Notifications":false,"ChangePassword":"0001-01-01T00:00:00.0000000","Activated":"0001-01-01T00:00:00.0000000","TwoFactorChannel":"String"}