コード例 #1
0
 public static Task <IReadOnlyList <TContact> > FindInListAsync <TContact>(this IHubSpotContactConnector connector, long listId) where TContact : Contact, new()
 => connector.FindAsync <TContact>(FilterContacts.ByListId(listId));
コード例 #2
0
 public static Task <IReadOnlyList <TContact> > FindByCompanyIdAsync <TContact>(this IHubSpotContactConnector connector, long companyId) where TContact : Contact, new()
 => connector.FindAsync <TContact>(FilterContacts.ByCompanyId(companyId));
コード例 #3
0
 public static Task <IReadOnlyList <TContact> > FindAsync <TContact>(this IHubSpotContactConnector connector, string searchQuery) where TContact : Contact, new()
 => connector.FindAsync <TContact>(FilterContacts.Query(searchQuery));
コード例 #4
0
 public static Task <IReadOnlyList <TContact> > FindByEmailAsync <TContact>(this IHubSpotContactConnector connector, params string[] emails) where TContact : Contact, new()
 => connector.FindAsync <TContact>(FilterContacts.ByEmail(emails));
コード例 #5
0
 public static Task <IReadOnlyList <TContact> > FindByIdAsync <TContact>(this IHubSpotContactConnector connector, params long[] ids) where TContact : Contact, new()
 => connector.FindAsync <TContact>(FilterContacts.ById(ids));
コード例 #6
0
 public static Task <IReadOnlyList <TContact> > FindAllAsync <TContact>(this IHubSpotContactConnector connector) where TContact : Contact, new()
 => connector.FindAsync <TContact>(FilterContacts.All);
コード例 #7
0
 public static Task <IReadOnlyList <TContact> > FindRecentlyCreatedAsync <TContact>(this IHubSpotContactConnector connector) where TContact : Contact, new()
 => connector.FindAsync <TContact>(FilterContacts.RecentlyCreated);
コード例 #8
0
 public static Task <Contact> SaveAsync(this IHubSpotContactConnector connector, Contact contact) => connector.SaveAsync(contact);
コード例 #9
0
 public static Task <IReadOnlyList <Contact> > FindAsync(this IHubSpotContactConnector connector, IContactFilter filter = null) => connector.FindAsync <Contact>(filter);
コード例 #10
0
 public static Task <Contact> GetByUserTokenAsync(this IHubSpotContactConnector connector, string userToken) => GetByUserTokenAsync <Contact>(connector, userToken);
コード例 #11
0
 public static Task <Contact> GetAsync(this IHubSpotContactConnector connector, IContactSelector selector) => connector.GetAsync <Contact>(selector);
コード例 #12
0
 public static Task <Contact> GetByEmailAsync(this IHubSpotContactConnector connector, string email) => GetByEmailAsync <Contact>(connector, email);
コード例 #13
0
 public static Task <Contact> GetByIdAsync(this IHubSpotContactConnector connector, long contactId) => GetByIdAsync <Contact>(connector, contactId);
コード例 #14
0
 public static Task <TContact> GetByUserTokenAsync <TContact>(this IHubSpotContactConnector connector, string userToken) where TContact : Contact, new()
 => connector.GetAsync <TContact>(SelectContact.ByUserToken(userToken));
コード例 #15
0
 public static Task <TContact> GetByEmailAsync <TContact>(this IHubSpotContactConnector connector, string email) where TContact : Contact, new()
 => connector.GetAsync <TContact>(SelectContact.ByEmail(email));
コード例 #16
0
 public static Task <TContact> GetByIdAsync <TContact>(this IHubSpotContactConnector connector, long contactId) where TContact : Contact, new()
 => connector.GetAsync <TContact>(SelectContact.ById(contactId));