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