/* Options: Date: 2024-11-21 22:54:36 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://sharpscript.net //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryGitHubRepos.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } // @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) { (Object as any).assign(this, init); } } export class QueryData extends QueryBase { public constructor(init?: Partial>) { super(init); (Object as any).assign(this, init); } } export class GithubUser { public id: number; public login: string; public avatar_Url: string; public url: string; public followers?: number; public following?: number; public type: string; public public_Gists?: number; public location: string; public company: string; public html_Url: string; public public_Repos?: number; public created_At?: string; public blog: string; public email: string; public name: string; public hireable?: boolean; public gravatar_Id: string; public bio: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class GithubRepo { public id: number; public name: string; public description: string; public homepage: string; public language: string; public watchers_Count: number; public stargazes_Count: number; public forks_Count: number; public open_Issues_Count: number; public size: number; public full_Name: string; public created_at: string; public pushed_At?: string; public updated_At?: string; public has_issues: boolean; public has_Downloads: boolean; public has_Wiki: boolean; public has_Pages: boolean; public fork: boolean; public owner: GithubUser; public svn_Url: string; public mirror_Url: string; public url: string; public ssh_Url: string; public html_Url: string; public clone_Url: string; public git_Url: string; public private: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class QueryResponse { // @DataMember(Order=1) public offset: number; // @DataMember(Order=2) public total: number; // @DataMember(Order=3) public results: GithubRepo[]; // @DataMember(Order=4) public meta: { [index: string]: string; }; // @DataMember(Order=5) public responseStatus: ResponseStatus; public constructor(init?: Partial>) { (Object as any).assign(this, init); } } export class QueryGitHubRepos extends QueryData implements IReturn> { public userName: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'QueryGitHubRepos'; } public getMethod() { return 'GET'; } public createResponse() { return new QueryResponse(); } }