Exemplo n.º 1
0
 public static Task <IReadOnlyList <TContact> > FindInListAsync <TContact>(this IHubSpotContactConnector connector, long listId) where TContact : Contact, new()
 => connector.FindAsync <TContact>(FilterContacts.ByListId(listId));
Exemplo n.º 2
0
 public static Task <IReadOnlyList <TContact> > FindByCompanyIdAsync <TContact>(this IHubSpotContactConnector connector, long companyId) where TContact : Contact, new()
 => connector.FindAsync <TContact>(FilterContacts.ByCompanyId(companyId));
Exemplo n.º 3
0
 public static Task <IReadOnlyList <TContact> > FindAsync <TContact>(this IHubSpotContactConnector connector, string searchQuery) where TContact : Contact, new()
 => connector.FindAsync <TContact>(FilterContacts.Query(searchQuery));
Exemplo n.º 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));
Exemplo n.º 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));
Exemplo n.º 6
0
 public static Task <IReadOnlyList <TContact> > FindAllAsync <TContact>(this IHubSpotContactConnector connector) where TContact : Contact, new()
 => connector.FindAsync <TContact>(FilterContacts.All);
Exemplo n.º 7
0
 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);
Exemplo n.º 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);
Exemplo n.º 12
0
 public static Task <Contact> GetByEmailAsync(this IHubSpotContactConnector connector, string email) => GetByEmailAsync <Contact>(connector, email);
Exemplo n.º 13
0
 public static Task <Contact> GetByIdAsync(this IHubSpotContactConnector connector, long contactId) => GetByIdAsync <Contact>(connector, contactId);
Exemplo n.º 14
0
 public static Task <TContact> GetByUserTokenAsync <TContact>(this IHubSpotContactConnector connector, string userToken) where TContact : Contact, new()
 => connector.GetAsync <TContact>(SelectContact.ByUserToken(userToken));
Exemplo n.º 15
0
 public static Task <TContact> GetByEmailAsync <TContact>(this IHubSpotContactConnector connector, string email) where TContact : Contact, new()
 => connector.GetAsync <TContact>(SelectContact.ByEmail(email));
Exemplo n.º 16
0
 public static Task <TContact> GetByIdAsync <TContact>(this IHubSpotContactConnector connector, long contactId) where TContact : Contact, new()
 => connector.GetAsync <TContact>(SelectContact.ById(contactId));