public static Dispensary GetDispensary(string state, string city, string slug) { var urlGenerator = new UrlGenerator(); urlGenerator.GenerateCannabisReportsUrl(state, city, slug); Dispensary dispensary = DataRequester.GetObject <Dispensary>(urlGenerator.URL); return(dispensary); }
public static Strain GetExtractStrain(string ucpc) { var urlGenerator = new UrlGenerator(); var ucpcObject = new UCPC(ucpc, PrimaryObjectType.Extract); urlGenerator.GenerateCannabisReportsUrl(ucpcObject, SecondaryObjectType.Strain); Strain strain = DataRequester.GetObject <Strain>(urlGenerator.URL); return(strain); }
public static Producer GetExtractProducer(string ucpc) { var urlGenerator = new UrlGenerator(); var ucpcObject = new UCPC(ucpc, PrimaryObjectType.Extract); urlGenerator.GenerateCannabisReportsUrl(ucpcObject, SecondaryObjectType.Producer); Producer producer = DataRequester.GetObject <Producer>(urlGenerator.URL); return(producer); }
public static EffectsAndFlavors GetExtractEffectsFlavors(string ucpc) { var urlGenerator = new UrlGenerator(); var ucpcObject = new UCPC(ucpc, PrimaryObjectType.Extract); urlGenerator.GenerateCannabisReportsUrl(ucpcObject, SecondaryObjectType.EffectsAndFlavors); EffectsAndFlavors effectsAndFlavors = DataRequester.GetObject <EffectsAndFlavors>(urlGenerator.URL); return(effectsAndFlavors); }
public static Extract GetExtract(string ucpc) { var urlGenerator = new UrlGenerator(); var ucpcObject = new UCPC(ucpc, PrimaryObjectType.Extract); urlGenerator.GenerateCannabisReportsUrl(ucpcObject); Extract extract = DataRequester.GetObject <Extract>(urlGenerator.URL); return(extract); }
public static User GetFlowerUser(string ucpc) { var urlGenerator = new UrlGenerator(); var ucpcObject = new UCPC(ucpc, PrimaryObjectType.Flower); urlGenerator.GenerateCannabisReportsUrl(ucpcObject, SecondaryObjectType.User); User user = DataRequester.GetObject <User>(urlGenerator.URL); return(user); }
public static Flower GetFlower(string ucpc) { var urlGenerator = new UrlGenerator(); var ucpcObject = new UCPC(ucpc, PrimaryObjectType.Flower); urlGenerator.GenerateCannabisReportsUrl(ucpcObject); Flower flower = DataRequester.GetObject <Flower>(urlGenerator.URL); return(flower); }
public static SeedCompany GetStrainSeedCompany(string ucpc) { var urlGenerator = new UrlGenerator(); var ucpcObject = new UCPC(ucpc, PrimaryObjectType.Strain); urlGenerator.GenerateCannabisReportsUrl(ucpcObject, SecondaryObjectType.SeedCompany); SeedCompany seedCompany = DataRequester.GetObject <SeedCompany>(urlGenerator.URL); return(seedCompany); }
public static Edible GetEdible(string ucpc) { var urlGenerator = new UrlGenerator(); var ucpcObject = new UCPC(ucpc, PrimaryObjectType.Edible); urlGenerator.GenerateCannabisReportsUrl(ucpcObject); Edible edible = DataRequester.GetObject <Edible>(urlGenerator.URL); return(edible); }
public static Product GetProduct(string ucpc) { var urlGenerator = new UrlGenerator(); var ucpcObject = new UCPC(ucpc, PrimaryObjectType.Product); urlGenerator.GenerateCannabisReportsUrl(ucpcObject); Product product = DataRequester.GetObject <Product>(urlGenerator.URL); return(product); }