コード例 #1
0
 public static Opportunity Create(Opportunity opportunity)
 {
     return(OpportunityResource.CreateAsync(opportunity).Result);
 }
コード例 #2
0
 public static Opportunity Show(long opportunityId, Embed[] embed = null)
 {
     return(OpportunityResource.ShowAsync(opportunityId, embed).Result);
 }
コード例 #3
0
 public static OpportunityWrapper ShowMultiple(long[] opportunityIds, Embed[] embed = null)
 {
     return(OpportunityResource.ShowMultipleAsync(opportunityIds, embed).Result);
 }
コード例 #4
0
 public static CaseWrapper ListAssociatedCases(long opportunityId, int page = 1, int perPage = 20, Embed[] embed = null)
 {
     return(OpportunityResource.ListAssociatedCasesAsync(opportunityId, page, perPage, embed).Result);
 }
コード例 #5
0
 public static OpportunityWrapper ListByParty(long partyId, int page = 1, int perPage = 20, Embed[] embed = null)
 {
     return(OpportunityResource.ListByPartyAsync(partyId, page, perPage, embed).Result);
 }
コード例 #6
0
 public static OpportunityWrapper List(DateTime?since = null, int page = 1, int perPage = 20, Embed[] embed = null)
 {
     return(OpportunityResource.ListAsync(since, page, perPage, embed).Result);
 }
コード例 #7
0
 public static bool RemoveAdditionalParty(long opportunityId, long partyId)
 {
     return(OpportunityResource.RemoveAdditionalPartyAsync(opportunityId, partyId).Result);
 }
コード例 #8
0
 public static PartyWrapper ListAdditionalParties(long opportunityId, int page = 1, int perPage = 20, Embed[] embed = null)
 {
     return(OpportunityResource.ListAdditionalPartiesAsync(opportunityId, page, perPage, embed).Result);
 }
コード例 #9
0
 public static OpportunityWrapper SearchOpportunities(string query, int page = 1, int perPage = 20)
 {
     return(OpportunityResource.SearchOpportunitiesAsync(query, page, perPage).Result);
 }
コード例 #10
0
 public static OpportunityWrapper ListDeleted(DateTime since)
 {
     return(OpportunityResource.ListDeletedAsync(since).Result);
 }
コード例 #11
0
 public static bool Delete(long opportunityId)
 {
     return(OpportunityResource.DeleteAsync(opportunityId).Result);
 }
コード例 #12
0
 public static Opportunity Update(long opportunityId, Opportunity opportunity)
 {
     return(OpportunityResource.UpdateAsync(opportunityId, opportunity).Result);
 }