Esempio n. 1
0
 public void BatchGetPhotos()
 {
     // Snippet: BatchGetPhotos(IEnumerable<string>,PhotoView,CallSettings)
     // Create client
     StreetViewPublishServiceClient streetViewPublishServiceClient = StreetViewPublishServiceClient.Create();
     // Initialize request argument(s)
     IEnumerable <string> photoIds = new List <string>();
     PhotoView            view     = PhotoView.Basic;
     // Make the request
     BatchGetPhotosResponse response = streetViewPublishServiceClient.BatchGetPhotos(photoIds, view);
     // End snippet
 }
Esempio n. 2
0
 public void BatchGetPhotos_RequestObject()
 {
     // Snippet: BatchGetPhotos(BatchGetPhotosRequest,CallSettings)
     // Create client
     StreetViewPublishServiceClient streetViewPublishServiceClient = StreetViewPublishServiceClient.Create();
     // Initialize request argument(s)
     BatchGetPhotosRequest request = new BatchGetPhotosRequest
     {
         PhotoIds = { },
         View     = PhotoView.Basic,
     };
     // Make the request
     BatchGetPhotosResponse response = streetViewPublishServiceClient.BatchGetPhotos(request);
     // End snippet
 }
Esempio n. 3
0
        public async Task BatchGetPhotosAsync()
        {
            // Snippet: BatchGetPhotosAsync(IEnumerable<string>,PhotoView,CallSettings)
            // Additional: BatchGetPhotosAsync(IEnumerable<string>,PhotoView,CancellationToken)
            // Create client
            StreetViewPublishServiceClient streetViewPublishServiceClient = await StreetViewPublishServiceClient.CreateAsync();

            // Initialize request argument(s)
            IEnumerable <string> photoIds = new List <string>();
            PhotoView            view     = PhotoView.Basic;
            // Make the request
            BatchGetPhotosResponse response = await streetViewPublishServiceClient.BatchGetPhotosAsync(photoIds, view);

            // End snippet
        }