Ejemplo n.º 1
0
            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);
            }
Ejemplo n.º 2
0
 /// <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:  * &#x60;cubical&#x60; - The spatial projection is cubical.  * &#x60;cylindrical&#x60; - The spatial projection is cylindrical.  * &#x60;dome&#x60; - The spatial projection is dome-shaped.  * &#x60;equirectangular&#x60; - The spatial projection is equirectangular.  * &#x60;pyramid&#x60; - The spatial projection is pyramid-shaped.  (required).</param>
 /// <param name="stereoFormat">The 360 stereo format:  Option descriptions:  * &#x60;left-right&#x60; - The stereo format is left-right.  * &#x60;mono&#x60; - The audio is monaural.  * &#x60;top-bottom&#x60; - 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;
 }