POST,GET | /api/Security/GetUserByBranchForApp |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class User
{
var UserId:Int? = null
var UserName:String? = null
var Name:String? = null
var Email:String? = null
var EmailConfirmed:Boolean? = null
var MobilePhone:String? = null
var MobilePhoneConfirmed:Boolean? = null
var ConfirmPassword:String? = null
var Password:String? = null
var PasswordSalt:String? = null
var Enabled:Boolean? = null
var Training:Boolean? = null
var LastLogin:Date? = null
var Created:Date? = null
var BranchId:Int? = null
var ParentBranchId:Int? = null
var MemberId:Int? = null
var Roles:ArrayList<String>? = null
var CoursesCompleted:TrainingCourse? = null
var DisplayHomeNotification:Boolean? = null
var TwoFactorEnabled:Boolean? = null
var BranchName:String? = null
var BranchKey:UUID? = null
var Notifications:Boolean? = null
var PublishableKey:String? = null
var SecretKey:String? = null
var AppRegistrationId:String? = null
var AppRegistrationLink:String? = null
var AppQrImageLink:String? = null
var ChangePassword:Date? = null
var Activated:Date? = null
}
@Flags()
enum class TrainingCourse(val value:Int)
{
@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),
}
Kotlin SecurityService.GetUserByBranchForAppRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/Security/GetUserByBranchForApp HTTP/1.1
Host: api.clubmanagercentral.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SecurityService.GetUserByBranchForAppRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClubManager.Api.Services">
<AppUserId>0</AppUserId>
</SecurityService.GetUserByBranchForAppRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClubManager.Interfaces.Models.Security"> <_x003C_Activated_x003E_k__BackingField>0001-01-01T00:00:00</_x003C_Activated_x003E_k__BackingField> <_x003C_BranchId_x003E_k__BackingField>0</_x003C_BranchId_x003E_k__BackingField> <_x003C_BranchKey_x003E_k__BackingField>00000000-0000-0000-0000-000000000000</_x003C_BranchKey_x003E_k__BackingField> <_x003C_BranchName_x003E_k__BackingField>String</_x003C_BranchName_x003E_k__BackingField> <_x003C_ChangePassword_x003E_k__BackingField>0001-01-01T00:00:00</_x003C_ChangePassword_x003E_k__BackingField> <_x003C_ConfirmPassword_x003E_k__BackingField>String</_x003C_ConfirmPassword_x003E_k__BackingField> <_x003C_CoursesCompleted_x003E_k__BackingField>AddMember</_x003C_CoursesCompleted_x003E_k__BackingField> <_x003C_Created_x003E_k__BackingField>0001-01-01T00:00:00</_x003C_Created_x003E_k__BackingField> <_x003C_DisplayHomeNotification_x003E_k__BackingField>false</_x003C_DisplayHomeNotification_x003E_k__BackingField> <_x003C_EmailConfirmed_x003E_k__BackingField>false</_x003C_EmailConfirmed_x003E_k__BackingField> <_x003C_Email_x003E_k__BackingField>String</_x003C_Email_x003E_k__BackingField> <_x003C_Enabled_x003E_k__BackingField>false</_x003C_Enabled_x003E_k__BackingField> <_x003C_LastLogin_x003E_k__BackingField>0001-01-01T00:00:00</_x003C_LastLogin_x003E_k__BackingField> <_x003C_MemberId_x003E_k__BackingField>0</_x003C_MemberId_x003E_k__BackingField> <_x003C_MobilePhoneConfirmed_x003E_k__BackingField>false</_x003C_MobilePhoneConfirmed_x003E_k__BackingField> <_x003C_MobilePhone_x003E_k__BackingField>String</_x003C_MobilePhone_x003E_k__BackingField> <_x003C_Name_x003E_k__BackingField>String</_x003C_Name_x003E_k__BackingField> <_x003C_Notifications_x003E_k__BackingField>false</_x003C_Notifications_x003E_k__BackingField> <_x003C_ParentBranchId_x003E_k__BackingField>0</_x003C_ParentBranchId_x003E_k__BackingField> <_x003C_PasswordSalt_x003E_k__BackingField>String</_x003C_PasswordSalt_x003E_k__BackingField> <_x003C_Password_x003E_k__BackingField>String</_x003C_Password_x003E_k__BackingField> <_x003C_PublishableKey_x003E_k__BackingField>String</_x003C_PublishableKey_x003E_k__BackingField> <_x003C_Roles_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>String</d2p1:string> </_x003C_Roles_x003E_k__BackingField> <_x003C_SecretKey_x003E_k__BackingField>String</_x003C_SecretKey_x003E_k__BackingField> <_x003C_Training_x003E_k__BackingField>false</_x003C_Training_x003E_k__BackingField> <_x003C_TwoFactorEnabled_x003E_k__BackingField>false</_x003C_TwoFactorEnabled_x003E_k__BackingField> <_x003C_UserId_x003E_k__BackingField>0</_x003C_UserId_x003E_k__BackingField> <_x003C_UserName_x003E_k__BackingField>String</_x003C_UserName_x003E_k__BackingField> </User>