public string List(OrderByEnum[] order, string query = null, CorpusEnum corpus = CorpusEnum.DEFAULT, ProjectionEnum projection = ProjectionEnum.BASIC, string pageToken = null, int maxResults = 1000, SpacesEnum spaces = SpacesEnum.drive) { string url = string.Format(uriFileList, HttpUtility.UrlEncode(OrderBy.Get(order), Encoding.UTF8), corpus.ToString(), projection.ToString(), maxResults.ToString(), spaces.ToString()); if (pageToken != null) { url += "&pageToken=" + pageToken; } if (query != null) { url += "&q=" + HttpUtility.UrlEncode(query, Encoding.UTF8); } return(client.Request <string>(url, TypeRequest.GET).DataTextResponse); }
/// <summary> /// Initializes a new instance of the <see cref="VideoSpatial" /> class. /// </summary> /// <param name="directorTimeline">360 director timeline. (required).</param> /// <param name="fieldOfView">The 360 field of view, from 30 (minimum) to 90 (maximum). The default is 50. (required).</param> /// <param name="projection">The 360 spatial projection: Option descriptions: * `cubical` - The spatial projection is cubical. * `cylindrical` - The spatial projection is cylindrical. * `dome` - The spatial projection is dome-shaped. * `equirectangular` - The spatial projection is equirectangular. * `pyramid` - The spatial projection is pyramid-shaped. (required).</param> /// <param name="stereoFormat">The 360 stereo format: Option descriptions: * `left-right` - The stereo format is left-right. * `mono` - The audio is monaural. * `top-bottom` - The stereo format is top-bottom. (required).</param> public VideoSpatial(List <VideoSpatialDirectorTimeline> directorTimeline = default(List <VideoSpatialDirectorTimeline>), decimal?fieldOfView = default(decimal?), ProjectionEnum projection = default(ProjectionEnum), StereoFormatEnum stereoFormat = default(StereoFormatEnum)) { // to ensure "directorTimeline" is required (not null) this.DirectorTimeline = directorTimeline ?? throw new ArgumentNullException("directorTimeline is a required property for VideoSpatial and cannot be null"); // to ensure "fieldOfView" is required (not null) this.FieldOfView = fieldOfView ?? throw new ArgumentNullException("fieldOfView is a required property for VideoSpatial and cannot be null"); this.Projection = projection; this.StereoFormat = stereoFormat; }