ClubManager.Api

<back to all web services

FindMemberStatistic

Requires Authentication
Required role:API
The following routes are available for this service:
All Verbs/api/Query/MemberStatistic

// @DataContract
export class QueryBase
{
    // @DataMember(Order=1)
    public Skip?: number;

    // @DataMember(Order=2)
    public Take?: number;

    // @DataMember(Order=3)
    public OrderBy?: string;

    // @DataMember(Order=4)
    public OrderByDesc?: string;

    // @DataMember(Order=5)
    public Include?: string;

    // @DataMember(Order=6)
    public Fields?: string;

    // @DataMember(Order=7)
    public Meta?: { [index: string]: string; };

    public constructor(init?: Partial<QueryBase>) { (Object as any).assign(this, init); }
}

export class QueryDb<T> extends QueryBase
{

    public constructor(init?: Partial<QueryDb<T>>) { super(init); (Object as any).assign(this, init); }
}

export class MemberStatisticInstance
{
    public MemberId?: number;
    public TotalAttendance?: number;
    public LastAttendance?: string;
    public AttendanceThisWeek?: number;
    public DateOfLastBooking?: string;
    public BookingsAttended?: number;
    public RecurringPayments?: number;
    public OverduePayments?: number;
    public RecurringPaymentsPaidInLast30Days?: number;
    public GradingReadiness?: number;
    public Bookings?: number;
    public ModifiedDate?: string;

    public constructor(init?: Partial<MemberStatisticInstance>) { (Object as any).assign(this, init); }
}

// @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="MemberStatistic")
export class FindMemberStatistic extends QueryDb<MemberStatisticInstance>
{

    public constructor(init?: Partial<FindMemberStatistic>) { super(init); (Object as any).assign(this, init); }
}

// @DataContract
export class QueryResponse<T>
{
    // @DataMember(Order=1)
    public Offset?: number;

    // @DataMember(Order=2)
    public Total?: number;

    // @DataMember(Order=3)
    public Results?: T[];

    // @DataMember(Order=4)
    public Meta?: { [index: string]: string; };

    // @DataMember(Order=5)
    public ResponseStatus?: ResponseStatus;

    public constructor(init?: Partial<QueryResponse<T>>) { (Object as any).assign(this, init); }
}

TypeScript FindMemberStatistic DTOs

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

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/Query/MemberStatistic HTTP/1.1 
Host: api.clubmanagercentral.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Skip":0,"Take":0,"OrderBy":"String","OrderByDesc":"String","Include":"String","Fields":"String","Meta":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Offset":0,"Total":0,"Results":[{"MemberId":0,"TotalAttendance":0,"LastAttendance":"0001-01-01T00:00:00.0000000","AttendanceThisWeek":0,"DateOfLastBooking":"0001-01-01T00:00:00.0000000","BookingsAttended":0,"RecurringPayments":0,"OverduePayments":0,"RecurringPaymentsPaidInLast30Days":0,"GradingReadiness":0,"Bookings":0,"ModifiedDate":"0001-01-01T00:00:00.0000000"}],"Meta":{"String":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}