コード例 #1
0
 static async public Task <ApiList <Comment> > GetAllComments(Api api, long[] projectIds = null, Status status = Status.active, DateSort sort = DateSort.created_at, SortDirection direction = SortDirection.desc)
 {
     return(await GetAllRecordings <Comment>(api, RecordingType.Comment, projectIds, status, sort, direction));
 }
コード例 #2
0
ファイル: Recording.cs プロジェクト: nikkilocke/BaseCampApi
 static async public Task <ApiList <T> > GetAllRecordings <T>(Api api, RecordingType type, long[] projectIds = null, Status status = Status.active, DateSort sort = DateSort.created_at, SortDirection direction = SortDirection.desc)
     where T : new()
 {
     return(await api.GetAsync <ApiList <T> >(Api.Combine("projects", "recordings"), new {
         type,
         bucket = projectIds,
         status,
         sort,
         direction
     }));
 }
コード例 #3
0
 static async public Task <ApiList <Message> > GetAllMessages(Api api, long projectId, Status status = Status.active, DateSort sort = DateSort.created_at, SortDirection direction = SortDirection.desc)
 {
     return(await GetAllRecordings <Message>(api, RecordingType.Message, projectId, status, sort, direction));
 }
コード例 #4
0
ファイル: Recording.cs プロジェクト: nikkilocke/BaseCampApi
 static async public Task <ApiList <T> > GetAllRecordings <T>(Api api, RecordingType type, long projectId, Status status = Status.active, DateSort sort = DateSort.created_at, SortDirection direction = SortDirection.desc)
     where T : new()
 {
     return(await GetAllRecordings <T>(api, type, new long[] { projectId }, status, sort, direction));
 }