Class MediaResource
The "media" collection of methods.
Inherited Members
Namespace: Google.Apis.Walletobjects.v1
Assembly: Google.Apis.Walletobjects.v1.dll
Syntax
public class MediaResource
Constructors
MediaResource(IClientService)
Constructs a new resource.
Declaration
public MediaResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Download(string)
Downloads rotating barcode values for the transit object referenced by the given object ID.
Declaration
public virtual MediaResource.DownloadRequest Download(string resourceId)
Parameters
Type | Name | Description |
---|---|---|
string | resourceId | The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
Returns
Type | Description |
---|---|
MediaResource.DownloadRequest |
Upload(TransitObjectUploadRotatingBarcodeValuesRequest, string)
Uploads rotating barcode values for the transit object referenced by the given object ID. Note the max upload size is specified in google3/production/config/cdd/apps-upload/customers/payments-consumer-passes/config.gcl and enforced by Scotty.
Declaration
public virtual MediaResource.UploadRequest Upload(TransitObjectUploadRotatingBarcodeValuesRequest body, string resourceId)
Parameters
Type | Name | Description |
---|---|---|
TransitObjectUploadRotatingBarcodeValuesRequest | body | The body of the request. |
string | resourceId | The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
Returns
Type | Description |
---|---|
MediaResource.UploadRequest |
Upload(TransitObjectUploadRotatingBarcodeValuesRequest, string, Stream, string)
Uploads rotating barcode values for the transit object referenced by the given object ID. Note the max upload size is specified in google3/production/config/cdd/apps-upload/customers/payments-consumer-passes/config.gcl and enforced by Scotty.
Declaration
public virtual MediaResource.UploadMediaUpload Upload(TransitObjectUploadRotatingBarcodeValuesRequest body, string resourceId, Stream stream, string contentType)
Parameters
Type | Name | Description |
---|---|---|
TransitObjectUploadRotatingBarcodeValuesRequest | body | The body of the request. |
string | resourceId | The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
Stream | stream | The stream to upload. See remarks for further information. |
string | contentType | The content type of the stream to upload. |
Returns
Type | Description |
---|---|
MediaResource.UploadMediaUpload |
Remarks
Considerations regarding stream
:
-
If
stream
is seekable, then the stream position will be reset to0
before reading commences. Ifstream
is not seekable, then it will be read from its current position -
Caller is responsible for maintaining the
stream
open until the upload is completed - Caller is responsible for closing the
stream