Required role: | API |
All Verbs | /api/Query/MemberStatistic |
---|
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="MemberStatistic")
open class FindMemberStatistic : QueryDb<MemberStatisticInstance>()
{
}
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 MemberStatisticInstance
{
var MemberId:Int? = null
var TotalAttendance:Int? = null
var LastAttendance:Date? = null
var AttendanceThisWeek:Int? = null
var DateOfLastBooking:Date? = null
var BookingsAttended:Int? = null
var RecurringPayments:Int? = null
var OverduePayments:Int? = null
var RecurringPaymentsPaidInLast30Days:Int? = null
var GradingReadiness:Int? = null
var Bookings:Int? = null
var ModifiedDate:Date? = 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 FindMemberStatistic DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=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"}}}