ClubManager.Api

<back to all web services

SecurityService.GetUserByBranchForAppRequest

Requires Authentication
The following routes are available for this service:
POST,GET/api/Security/GetUserByBranchForApp
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

// @Flags()
class TrainingCourse
{
    static const TrainingCourse AddMember = const TrainingCourse._(1);
    static const TrainingCourse EditMember = const TrainingCourse._(2);
    static const TrainingCourse AddMembership = const TrainingCourse._(4);
    static const TrainingCourse Journal = const TrainingCourse._(8);
    static const TrainingCourse Home = const TrainingCourse._(16);
    static const TrainingCourse Till = const TrainingCourse._(32);
    static const TrainingCourse Accounting = const TrainingCourse._(64);
    static const TrainingCourse UnexplainedPayments = const TrainingCourse._(128);
    static const TrainingCourse Bookings = const TrainingCourse._(256);
    static const TrainingCourse Users = const TrainingCourse._(512);

    final int _value;
    const TrainingCourse._(this._value);
    int get value => _value;
    static List<TrainingCourse> get values => const [AddMember,EditMember,AddMembership,Journal,Home,Till,Accounting,UnexplainedPayments,Bookings,Users];
}

class User implements IConvertible
{
    int? UserId;
    String? UserName;
    String? Name;
    String? Email;
    bool? EmailConfirmed;
    String? MobilePhone;
    bool? MobilePhoneConfirmed;
    String? ConfirmPassword;
    String? Password;
    String? PasswordSalt;
    bool? Enabled;
    bool? Training;
    DateTime? LastLogin;
    DateTime? Created;
    int? BranchId;
    int? ParentBranchId;
    int? MemberId;
    List<String>? Roles;
    TrainingCourse? CoursesCompleted;
    bool? DisplayHomeNotification;
    bool? TwoFactorEnabled;
    String? BranchName;
    String? BranchKey;
    bool? Notifications;
    String? PublishableKey;
    String? SecretKey;
    String? AppRegistrationId;
    String? AppRegistrationLink;
    String? AppQrImageLink;
    DateTime? ChangePassword;
    DateTime? Activated;

    User({this.UserId,this.UserName,this.Name,this.Email,this.EmailConfirmed,this.MobilePhone,this.MobilePhoneConfirmed,this.ConfirmPassword,this.Password,this.PasswordSalt,this.Enabled,this.Training,this.LastLogin,this.Created,this.BranchId,this.ParentBranchId,this.MemberId,this.Roles,this.CoursesCompleted,this.DisplayHomeNotification,this.TwoFactorEnabled,this.BranchName,this.BranchKey,this.Notifications,this.PublishableKey,this.SecretKey,this.AppRegistrationId,this.AppRegistrationLink,this.AppQrImageLink,this.ChangePassword,this.Activated});
    User.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        UserId = json['UserId'];
        UserName = json['UserName'];
        Name = json['Name'];
        Email = json['Email'];
        EmailConfirmed = json['EmailConfirmed'];
        MobilePhone = json['MobilePhone'];
        MobilePhoneConfirmed = json['MobilePhoneConfirmed'];
        ConfirmPassword = json['ConfirmPassword'];
        Password = json['Password'];
        PasswordSalt = json['PasswordSalt'];
        Enabled = json['Enabled'];
        Training = json['Training'];
        LastLogin = JsonConverters.fromJson(json['LastLogin'],'DateTime',context!);
        Created = JsonConverters.fromJson(json['Created'],'DateTime',context!);
        BranchId = json['BranchId'];
        ParentBranchId = json['ParentBranchId'];
        MemberId = json['MemberId'];
        Roles = JsonConverters.fromJson(json['Roles'],'List<String>',context!);
        CoursesCompleted = JsonConverters.fromJson(json['CoursesCompleted'],'TrainingCourse',context!);
        DisplayHomeNotification = json['DisplayHomeNotification'];
        TwoFactorEnabled = json['TwoFactorEnabled'];
        BranchName = json['BranchName'];
        BranchKey = json['BranchKey'];
        Notifications = json['Notifications'];
        PublishableKey = json['PublishableKey'];
        SecretKey = json['SecretKey'];
        AppRegistrationId = json['AppRegistrationId'];
        AppRegistrationLink = json['AppRegistrationLink'];
        AppQrImageLink = json['AppQrImageLink'];
        ChangePassword = JsonConverters.fromJson(json['ChangePassword'],'DateTime',context!);
        Activated = JsonConverters.fromJson(json['Activated'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'UserId': UserId,
        'UserName': UserName,
        'Name': Name,
        'Email': Email,
        'EmailConfirmed': EmailConfirmed,
        'MobilePhone': MobilePhone,
        'MobilePhoneConfirmed': MobilePhoneConfirmed,
        'ConfirmPassword': ConfirmPassword,
        'Password': Password,
        'PasswordSalt': PasswordSalt,
        'Enabled': Enabled,
        'Training': Training,
        'LastLogin': JsonConverters.toJson(LastLogin,'DateTime',context!),
        'Created': JsonConverters.toJson(Created,'DateTime',context!),
        'BranchId': BranchId,
        'ParentBranchId': ParentBranchId,
        'MemberId': MemberId,
        'Roles': JsonConverters.toJson(Roles,'List<String>',context!),
        'CoursesCompleted': JsonConverters.toJson(CoursesCompleted,'TrainingCourse',context!),
        'DisplayHomeNotification': DisplayHomeNotification,
        'TwoFactorEnabled': TwoFactorEnabled,
        'BranchName': BranchName,
        'BranchKey': BranchKey,
        'Notifications': Notifications,
        'PublishableKey': PublishableKey,
        'SecretKey': SecretKey,
        'AppRegistrationId': AppRegistrationId,
        'AppRegistrationLink': AppRegistrationLink,
        'AppQrImageLink': AppQrImageLink,
        'ChangePassword': JsonConverters.toJson(ChangePassword,'DateTime',context!),
        'Activated': JsonConverters.toJson(Activated,'DateTime',context!)
    };

    getTypeName() => "User";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: <String, TypeInfo> {
    'TrainingCourse': TypeInfo(TypeOf.Enum, enumValues:TrainingCourse.values),
    'User': TypeInfo(TypeOf.Class, create:() => User()),
});

Dart SecurityService.GetUserByBranchForAppRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + 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>