Esempio n. 1
0
 /// <summary>
 /// Gets a list of profiles for the specified web property.
 /// </summary>
 /// <param name="property">The parent web propaerty.</param>
 /// <param name="maxResults">The maximum number of views (profiles) to include in this response.</param>
 /// <param name="startIndex">An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.</param>
 public string GetProfiles(AnalyticsWebProperty property, int maxResults = 0, int startIndex = 0)
 {
     return(GetProfiles(property.AccountId, property.Id, maxResults, startIndex));
 }
Esempio n. 2
0
 public WebPropertyModel(AnalyticsWebProperty webProperty, AnalyticsProfile[] profiles)
 {
     Id       = webProperty.Id;
     Name     = webProperty.Name;
     Profiles = profiles?.Select(x => new ProfileModel(x)).ToList() ?? new List <ProfileModel>();
 }
 /// <summary>
 /// Gets a list of profiles for the specified web property.
 /// </summary>
 /// <param name="property">The parent web propaerty.</param>
 /// <param name="maxResults">The maximum number of views (profiles) to include in this response.</param>
 /// <param name="startIndex">An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.</param>
 public AnalyticsProfilesResponse GetProfiles(AnalyticsWebProperty property, int maxResults = 0, int startIndex = 0)
 {
     return(AnalyticsProfilesResponse.ParseJson(Service.Client.Analytics.GetProfiles(property.AccountId, property.Id, maxResults, startIndex)));
 }
Esempio n. 4
0
 public WebPropertyModel(AnalyticsWebProperty webProperty, ProfileModel[] profiles)
 {
     Id       = webProperty.Id;
     Name     = webProperty.Name;
     Profiles = profiles?.ToList() ?? new List <ProfileModel>();
 }