ClubManager.Api

<back to all web services

BranchService.GetBranchAppInfoForBuildRequest

The following routes are available for this service:
POST,GET/api/Branch/GetBranchAppInfoForBuild
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

// @Flags()
class AppFeature
{
    static const AppFeature None = const AppFeature._(0);
    static const AppFeature JoinOnline = const AppFeature._(1);
    static const AppFeature TodaysClasses = const AppFeature._(2);
    static const AppFeature RegistrationForm = const AppFeature._(4);
    static const AppFeature ForthcomingBookings = const AppFeature._(8);
    static const AppFeature WeeklyTimetable = const AppFeature._(16);
    static const AppFeature SessionTimetable = const AppFeature._(32);
    static const AppFeature FacilityTimetable = const AppFeature._(64);
    static const AppFeature TasterSessions = const AppFeature._(128);
    static const AppFeature HowToFindUs = const AppFeature._(256);
    static const AppFeature AttendanceLeaderboard = const AppFeature._(512);
    static const AppFeature MemberMessages = const AppFeature._(1024);
    static const AppFeature AchievementGallery = const AppFeature._(2048);
    static const AppFeature FreeText = const AppFeature._(4096);
    static const AppFeature QRCode = const AppFeature._(8192);
    static const AppFeature ShareAndInviteAFriend = const AppFeature._(16384);
    static const AppFeature RenewalPrompt = const AppFeature._(32768);
    static const AppFeature CurrentCapacity = const AppFeature._(65536);
    static const AppFeature JoinFriend = const AppFeature._(131072);
    static const AppFeature MemberPoints = const AppFeature._(262144);
    static const AppFeature PromoMembership = const AppFeature._(524288);
    static const AppFeature Shop = const AppFeature._(1048576);
    static const AppFeature ShowFacebook = const AppFeature._(2097152);
    static const AppFeature ShowTwitter = const AppFeature._(4194304);
    static const AppFeature ShowInstagram = const AppFeature._(8388608);
    static const AppFeature ShowYouTube = const AppFeature._(16777216);
    static const AppFeature ShowTikTok = const AppFeature._(33554432);
    static const AppFeature ShowShopify = const AppFeature._(67108864);
    static const AppFeature AttendanceStreak = const AppFeature._(134217728);
    static const AppFeature BookingCategories = const AppFeature._(268435456);
    static const AppFeature ShowSessionsRemaining = const AppFeature._(536870912);

    final int _value;
    const AppFeature._(this._value);
    int get value => _value;
    static List<AppFeature> get values => const [None,JoinOnline,TodaysClasses,RegistrationForm,ForthcomingBookings,WeeklyTimetable,SessionTimetable,FacilityTimetable,TasterSessions,HowToFindUs,AttendanceLeaderboard,MemberMessages,AchievementGallery,FreeText,QRCode,ShareAndInviteAFriend,RenewalPrompt,CurrentCapacity,JoinFriend,MemberPoints,PromoMembership,Shop,ShowFacebook,ShowTwitter,ShowInstagram,ShowYouTube,ShowTikTok,ShowShopify,AttendanceStreak,BookingCategories,ShowSessionsRemaining];
}

class BranchAppInfo implements IConvertible
{
    String? TitleText;
    String? AddText;
    String? RegisterText;
    String? JoinText;
    String? ARNiOS;
    String? ARNAndroid;
    String? AppIdentifier;
    String? AppBundleName;
    String? AppName;
    String? AppCenterAndroid;
    String? AppCenterIOS;
    int? BranchId;
    String? Name;
    String? BranchKey;
    String? Terms;
    DateTime? CancelDate;
    AppFeature? AppFeature;
    bool? CanBookOnline;
    String? PrimaryColor;
    String? SecondaryColor;
    String? BackgroundColor;
    String? HeaderTopColor;
    String? HeaderBottomColor;
    String? SideLeftColor;
    String? SideRightColor;
    String? SideFontColor;
    String? SideFontActiveColor;
    String? ExtWebBackgroundColor;
    String? ExtWebTextColor;
    String? ExtWebTintBackColor;
    String? ExtWebHighlightBackColor;
    String? ExtWebTabBackColor;
    String? HeadingColor;

    BranchAppInfo({this.TitleText,this.AddText,this.RegisterText,this.JoinText,this.ARNiOS,this.ARNAndroid,this.AppIdentifier,this.AppBundleName,this.AppName,this.AppCenterAndroid,this.AppCenterIOS,this.BranchId,this.Name,this.BranchKey,this.Terms,this.CancelDate,this.AppFeature,this.CanBookOnline,this.PrimaryColor,this.SecondaryColor,this.BackgroundColor,this.HeaderTopColor,this.HeaderBottomColor,this.SideLeftColor,this.SideRightColor,this.SideFontColor,this.SideFontActiveColor,this.ExtWebBackgroundColor,this.ExtWebTextColor,this.ExtWebTintBackColor,this.ExtWebHighlightBackColor,this.ExtWebTabBackColor,this.HeadingColor});
    BranchAppInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        TitleText = json['TitleText'];
        AddText = json['AddText'];
        RegisterText = json['RegisterText'];
        JoinText = json['JoinText'];
        ARNiOS = json['ARNiOS'];
        ARNAndroid = json['ARNAndroid'];
        AppIdentifier = json['AppIdentifier'];
        AppBundleName = json['AppBundleName'];
        AppName = json['AppName'];
        AppCenterAndroid = json['AppCenterAndroid'];
        AppCenterIOS = json['AppCenterIOS'];
        BranchId = json['BranchId'];
        Name = json['Name'];
        BranchKey = json['BranchKey'];
        Terms = json['Terms'];
        CancelDate = JsonConverters.fromJson(json['CancelDate'],'DateTime',context!);
        AppFeature = JsonConverters.fromJson(json['AppFeature'],'AppFeature',context!);
        CanBookOnline = json['CanBookOnline'];
        PrimaryColor = json['PrimaryColor'];
        SecondaryColor = json['SecondaryColor'];
        BackgroundColor = json['BackgroundColor'];
        HeaderTopColor = json['HeaderTopColor'];
        HeaderBottomColor = json['HeaderBottomColor'];
        SideLeftColor = json['SideLeftColor'];
        SideRightColor = json['SideRightColor'];
        SideFontColor = json['SideFontColor'];
        SideFontActiveColor = json['SideFontActiveColor'];
        ExtWebBackgroundColor = json['ExtWebBackgroundColor'];
        ExtWebTextColor = json['ExtWebTextColor'];
        ExtWebTintBackColor = json['ExtWebTintBackColor'];
        ExtWebHighlightBackColor = json['ExtWebHighlightBackColor'];
        ExtWebTabBackColor = json['ExtWebTabBackColor'];
        HeadingColor = json['HeadingColor'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'TitleText': TitleText,
        'AddText': AddText,
        'RegisterText': RegisterText,
        'JoinText': JoinText,
        'ARNiOS': ARNiOS,
        'ARNAndroid': ARNAndroid,
        'AppIdentifier': AppIdentifier,
        'AppBundleName': AppBundleName,
        'AppName': AppName,
        'AppCenterAndroid': AppCenterAndroid,
        'AppCenterIOS': AppCenterIOS,
        'BranchId': BranchId,
        'Name': Name,
        'BranchKey': BranchKey,
        'Terms': Terms,
        'CancelDate': JsonConverters.toJson(CancelDate,'DateTime',context!),
        'AppFeature': JsonConverters.toJson(AppFeature,'AppFeature',context!),
        'CanBookOnline': CanBookOnline,
        'PrimaryColor': PrimaryColor,
        'SecondaryColor': SecondaryColor,
        'BackgroundColor': BackgroundColor,
        'HeaderTopColor': HeaderTopColor,
        'HeaderBottomColor': HeaderBottomColor,
        'SideLeftColor': SideLeftColor,
        'SideRightColor': SideRightColor,
        'SideFontColor': SideFontColor,
        'SideFontActiveColor': SideFontActiveColor,
        'ExtWebBackgroundColor': ExtWebBackgroundColor,
        'ExtWebTextColor': ExtWebTextColor,
        'ExtWebTintBackColor': ExtWebTintBackColor,
        'ExtWebHighlightBackColor': ExtWebHighlightBackColor,
        'ExtWebTabBackColor': ExtWebTabBackColor,
        'HeadingColor': HeadingColor
    };

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

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

Dart BranchService.GetBranchAppInfoForBuildRequest 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/Branch/GetBranchAppInfoForBuild HTTP/1.1 
Host: api.clubmanagercentral.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<BranchService.GetBranchAppInfoForBuildRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClubManager.Api.Services">
  <Id>0</Id>
</BranchService.GetBranchAppInfoForBuildRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<BranchAppInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClubManager.Interfaces.Models.Branch">
  <_x003C_ARNAndroid_x003E_k__BackingField>String</_x003C_ARNAndroid_x003E_k__BackingField>
  <_x003C_ARNiOS_x003E_k__BackingField>String</_x003C_ARNiOS_x003E_k__BackingField>
  <_x003C_AddText_x003E_k__BackingField>String</_x003C_AddText_x003E_k__BackingField>
  <_x003C_AppBundleName_x003E_k__BackingField>String</_x003C_AppBundleName_x003E_k__BackingField>
  <_x003C_AppCenterAndroid_x003E_k__BackingField>String</_x003C_AppCenterAndroid_x003E_k__BackingField>
  <_x003C_AppCenterIOS_x003E_k__BackingField>String</_x003C_AppCenterIOS_x003E_k__BackingField>
  <_x003C_AppIdentifier_x003E_k__BackingField>String</_x003C_AppIdentifier_x003E_k__BackingField>
  <_x003C_AppName_x003E_k__BackingField>String</_x003C_AppName_x003E_k__BackingField>
  <_x003C_BranchId_x003E_k__BackingField>0</_x003C_BranchId_x003E_k__BackingField>
  <_x003C_JoinText_x003E_k__BackingField>String</_x003C_JoinText_x003E_k__BackingField>
  <_x003C_Name_x003E_k__BackingField>String</_x003C_Name_x003E_k__BackingField>
  <_x003C_RegisterText_x003E_k__BackingField>String</_x003C_RegisterText_x003E_k__BackingField>
  <_x003C_TitleText_x003E_k__BackingField>String</_x003C_TitleText_x003E_k__BackingField>
  <branch i:nil="true" />
</BranchAppInfo>