ClubManager.Api

<back to all web services

FindBranchStatistic

Requires Authentication
Required role:API
The following routes are available for this service:
All Verbs/api/Query/BranchStatistic
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


@AutoQueryViewer(Description="", IconUrl="octicon:database", Title="BranchStatistic")
open class FindBranchStatistic : QueryDb<BranchStatisticInstance>()
{
}

open class QueryDb<T> : QueryBase()
{
}

@DataContract
open class QueryBase
{
    @DataMember(Order=1)
    var Skip:Int? = null

    @DataMember(Order=2)
    var Take:Int? = null

    @DataMember(Order=3)
    var OrderBy:String? = null

    @DataMember(Order=4)
    var OrderByDesc:String? = null

    @DataMember(Order=5)
    var Include:String? = null

    @DataMember(Order=6)
    var Fields:String? = null

    @DataMember(Order=7)
    var Meta:HashMap<String,String> = HashMap<String,String>()
}

open class BranchStatisticInstance
{
    var ActiveRedAlerts:Int? = null
    var ActiveGreenAlerts:Int? = null
    var ActiveSleepers:Int? = null
    var ActivesAttendedFifty:Int? = null
    var FourteenDayers:Int? = null
    var AttendedLast7Dayers:Int? = null
    var ActiveMissedPayments:Int? = null
    var ContractExtenders:Int? = null
    var PrePayExpiring:Int? = null
    var SevenDayStarted:Int? = null
}

@DataContract
open class QueryResponse<T>
{
    @DataMember(Order=1)
    var Offset:Int? = null

    @DataMember(Order=2)
    var Total:Int? = null

    @DataMember(Order=3)
    var Results:ArrayList<T> = ArrayList<T>()

    @DataMember(Order=4)
    var Meta:HashMap<String,String> = HashMap<String,String>()

    @DataMember(Order=5)
    var ResponseStatus:ResponseStatus? = null
}

Kotlin FindBranchStatistic 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/BranchStatistic 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":[{"ActiveRedAlerts":0,"ActiveGreenAlerts":0,"ActiveSleepers":0,"ActivesAttendedFifty":0,"FourteenDayers":0,"AttendedLast7Dayers":0,"ActiveMissedPayments":0,"ContractExtenders":0,"PrePayExpiring":0,"SevenDayStarted":0}],"Meta":{"String":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}