POST,GET | /api/Branch/GetBranchAppInfo |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using ClubManager.Interfaces.Models.Branch;
namespace ClubManager.Interfaces.Models.Branch
{
[Flags]
public enum AppFeature
{
None = 0,
JoinOnline = 1,
TodaysClasses = 2,
RegistrationForm = 4,
ForthcomingBookings = 8,
WeeklyTimetable = 16,
SessionTimetable = 32,
FacilityTimetable = 64,
TasterSessions = 128,
HowToFindUs = 256,
AttendanceLeaderboard = 512,
MemberMessages = 1024,
AchievementGallery = 2048,
FreeText = 4096,
QRCode = 8192,
ShareAndInviteAFriend = 16384,
RenewalPrompt = 32768,
CurrentCapacity = 65536,
JoinFriend = 131072,
MemberPoints = 262144,
PromoMembership = 524288,
Shop = 1048576,
ShowFacebook = 2097152,
ShowTwitter = 4194304,
ShowInstagram = 8388608,
ShowYouTube = 16777216,
ShowTikTok = 33554432,
ShowShopify = 67108864,
AttendanceStreak = 134217728,
BookingCategories = 268435456,
ShowSessionsRemaining = 536870912,
}
public partial class BranchAppInfo
{
public virtual string TitleText { get; set; }
public virtual string AddText { get; set; }
public virtual string RegisterText { get; set; }
public virtual string JoinText { get; set; }
public virtual string ARNiOS { get; set; }
public virtual string ARNAndroid { get; set; }
public virtual string AppIdentifier { get; set; }
public virtual string AppBundleName { get; set; }
public virtual string AppName { get; set; }
public virtual string AppCenterAndroid { get; set; }
public virtual string AppCenterIOS { get; set; }
public virtual int? BranchId { get; set; }
public virtual string Name { get; set; }
public virtual string BranchKey { get; set; }
public virtual string Terms { get; set; }
public virtual DateTime? CancelDate { get; set; }
public virtual AppFeature AppFeature { get; set; }
public virtual bool CanBookOnline { get; set; }
public virtual string PrimaryColor { get; set; }
public virtual string SecondaryColor { get; set; }
public virtual string BackgroundColor { get; set; }
public virtual string HeaderTopColor { get; set; }
public virtual string HeaderBottomColor { get; set; }
public virtual string SideLeftColor { get; set; }
public virtual string SideRightColor { get; set; }
public virtual string SideFontColor { get; set; }
public virtual string SideFontActiveColor { get; set; }
public virtual string ExtWebBackgroundColor { get; set; }
public virtual string ExtWebTextColor { get; set; }
public virtual string ExtWebTintBackColor { get; set; }
public virtual string ExtWebHighlightBackColor { get; set; }
public virtual string ExtWebTabBackColor { get; set; }
public virtual string HeadingColor { get; set; }
}
}
C# BranchService.GetBranchAppInfoRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/Branch/GetBranchAppInfo HTTP/1.1
Host: api.clubmanagercentral.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Id":0}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"TitleText":"String","AddText":"String","RegisterText":"String","JoinText":"String","ARNiOS":"String","ARNAndroid":"String","AppIdentifier":"String","AppBundleName":"String","AppName":"String","AppCenterAndroid":"String","AppCenterIOS":"String","BranchId":0,"Name":"String","BranchKey":"00000000-0000-0000-0000-000000000000","Terms":null,"CancelDate":null,"AppFeature":0,"CanBookOnline":false,"PrimaryColor":null,"SecondaryColor":null,"BackgroundColor":null,"HeaderTopColor":null,"HeaderBottomColor":null,"SideLeftColor":null,"SideRightColor":null,"SideFontColor":null,"SideFontActiveColor":null,"ExtWebBackgroundColor":null,"ExtWebTextColor":null,"ExtWebTintBackColor":null,"ExtWebHighlightBackColor":null,"ExtWebTabBackColor":null,"HeadingColor":null}