protected void AddAgeOfPeopleFilter(AgeOfPeople value)
 {
     if (QueryParameters.ContainsKey(Constants.AgeOfPeopleKey))
     {
         QueryParameters[Constants.AgeOfPeopleKey] = value == AgeOfPeople.None
             ? value
             : (AgeOfPeople) QueryParameters[Constants.AgeOfPeopleKey] | value;
     }
     else
     {
         QueryParameters.Add(Constants.AgeOfPeopleKey, value);
     }
 }
Пример #2
0
 protected void AddAgeOfPeopleFilter(AgeOfPeople value)
 {
     if (QueryParameters.ContainsKey(Constants.AgeOfPeopleKey))
     {
         QueryParameters[Constants.AgeOfPeopleKey] = value == AgeOfPeople.None
             ? value
             : (AgeOfPeople)QueryParameters[Constants.AgeOfPeopleKey] | value;
     }
     else
     {
         QueryParameters.Add(Constants.AgeOfPeopleKey, value);
     }
 }
Пример #3
0
 public SearchImagesEditorial WithAgeOfPeople(AgeOfPeople value)
 {
     AddAgeOfPeopleFilter(value);
     return(this);
 }
 public SearchImagesCreative WithAgeOfPeople(AgeOfPeople value)
 {
     AddAgeOfPeopleFilter(value);
     return(this);
 }
 IEditorialVideosSearch IEditorialVideosSearch.WithAgeOfPeople(AgeOfPeople value)
 {
     return WithAgeOfPeople(value);
 }
 IEditorialImagesSearch IEditorialImagesSearch.WithAgeOfPeople(AgeOfPeople value)
 {
     return WithAgeOfPeople(value);
 }
 public SearchImages WithAgeOfPeople(AgeOfPeople value)
 {
     AddAgeOfPeopleFilter(value);
     return this;
 }
 public SearchVideos WithAgeOfPeople(AgeOfPeople value)
 {
     AddAgeOfPeopleFilter(value);
     return(this);
 }
 IBlendedImagesSearch IBlendedImagesSearch.WithAgeOfPeople(AgeOfPeople value)
 {
     return WithAgeOfPeople(value);
 }
 ICreativeVideosSearch ICreativeVideosSearch.WithAgeOfPeople(AgeOfPeople value)
 {
     return WithAgeOfPeople(value);
 }
 ICreativeImagesSearch ICreativeImagesSearch.WithAgeOfPeople(AgeOfPeople value)
 {
     return WithAgeOfPeople(value);
 }
 IBlendedVideosSearch IBlendedVideosSearch.WithAgeOfPeople(AgeOfPeople value)
 {
     return WithAgeOfPeople(value);
 }