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