GET | /api/GetSchedulingTypes |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using AIM.WebService;
namespace AIM.WebService
{
[DataContract]
public partial class BaseRequest
{
///<summary>
///This is your AIM API Key provided by Tri-Tech
///</summary>
[DataMember]
[ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="header")]
public virtual string ApiKey { get; set; }
[DataMember]
[ApiMember(DataType="string", Name="OAuthToken", ParameterType="header")]
public virtual string OAuthToken { get; set; }
}
[DataContract]
public partial class BaseResponse
{
///<summary>
///
///</summary>
[DataMember]
[ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body")]
public virtual BaseResponseResult Status { get; set; }
[DataContract]
public partial class BaseResponseResult
{
///<summary>
///
///</summary>
[DataMember]
[ApiMember(DataType="string", Description="", Name="StatusCode", ParameterType="body")]
public virtual string StatusCode { get; set; }
///<summary>
///
///</summary>
[DataMember]
[ApiMember(DataType="string", Description="", Name="Login", ParameterType="body")]
public virtual string Login { get; set; }
///<summary>
///
///</summary>
[DataMember]
[ApiMember(DataType="string", Description="", Name="ErrorCode", ParameterType="body")]
public virtual string ErrorCode { get; set; }
///<summary>
///
///</summary>
[DataMember]
[ApiMember(DataType="string", Description="", Name="ErrorDisplayText", ParameterType="body")]
public virtual string ErrorDisplayText { get; set; }
///<summary>
///
///</summary>
[DataMember]
[ApiMember(DataType="string", Description="", Name="ErrorMessage", ParameterType="body")]
public virtual string ErrorMessage { get; set; }
///<summary>
///
///</summary>
[DataMember]
[ApiMember(DataType="string", Description="", ExcludeInSchema=true, Name="DomainName", ParameterType="body")]
public virtual string DomainName { get; set; }
///<summary>
///
///</summary>
[DataMember]
[ApiMember(DataType="string", Description="", ExcludeInSchema=true, Name="IPAddress", ParameterType="body")]
public virtual string IpAddress { get; set; }
}
}
///<summary>
///GetSchedulingTypesRequires active-e Lesson Scheduling Service
///</summary>
[DataContract]
public partial class GetSchedulingTypesRequest
: BaseRequest
{
///<summary>
///Type ID to look up. If sent, all other parameters will be ignored.
///</summary>
[DataMember]
[ApiMember(DataType="integer", Description="Type ID to look up. If sent, all other parameters will be ignored.", Format="int64", Name="TypeId", ParameterType="query")]
public virtual long? TypeId { get; set; }
///<summary>
///If sent, only types in the sent grouping will be returned.
///</summary>
[DataMember]
[ApiMember(DataType="integer", Description="If sent, only types in the sent grouping will be returned.", Format="int64", Name="GroupingId", ParameterType="query")]
public virtual long? GroupingId { get; set; }
///<summary>
///If sent, only types taught by the sent instructor will be returned.
///</summary>
[DataMember]
[ApiMember(DataType="integer", Description="If sent, only types taught by the sent instructor will be returned.", Format="int32", Name="InstructorId", ParameterType="query")]
public virtual int? InstructorId { get; set; }
///<summary>
///If sent, only types taught at the sent location will be returned.
///</summary>
[DataMember]
[ApiMember(DataType="integer", Description="If sent, only types taught at the sent location will be returned.", Format="int64", Name="LocationId", ParameterType="query")]
public virtual long? LocationId { get; set; }
///<summary>
///If sent, should be Private or Group. If Private, only Private Lesson Types will be returned. If Group, only Group Lesson Types will be returned.
///</summary>
[DataMember]
[ApiMember(DataType="integer", Description="If sent, should be Private or Group. If Private, only Private Lesson Types will be returned. If Group, only Group Lesson Types will be returned.", Format="int64", Name="MembershipType", ParameterType="query")]
public virtual string MembershipType { get; set; }
}
[DataContract]
public partial class GetSchedulingTypesResponse
: BaseResponse
{
public GetSchedulingTypesResponse()
{
Types = new List<TypeInfo>{};
}
[DataMember]
public virtual List<TypeInfo> Types { get; set; }
[DataContract]
public partial class TypeInfo
{
[DataMember]
public virtual long Id { get; set; }
[DataMember]
public virtual string Desc { get; set; }
[DataMember]
public virtual int Length { get; set; }
[DataMember]
public virtual string Topic { get; set; }
[DataMember]
public virtual string RecurranceType { get; set; }
[DataMember]
public virtual string MembershipType { get; set; }
[DataMember]
public virtual decimal Rate { get; set; }
[DataMember]
public virtual long? GroupingId { get; set; }
[DataMember]
public virtual string GroupingDesc { get; set; }
}
}
}
C# GetSchedulingTypesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/GetSchedulingTypes HTTP/1.1 Host: active-ewebservice.biz Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"Types":[{"Id":0,"Desc":"String","Length":0,"Topic":"String","RecurranceType":"String","MembershipType":"String","Rate":0,"GroupingId":0,"GroupingDesc":"String"}],"Status":{"StatusCode":"String","Login":"String","ErrorCode":"String","ErrorDisplayText":"String","ErrorMessage":"String","DomainName":"String","IpAddress":"String"}}