Class ImageConfigurationsResource
The "imageConfigurations" collection of methods.
Inheritance
System.Object
ImageConfigurationsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.GamesConfiguration.v1configuration
Assembly: Google.Apis.GamesConfiguration.v1configuration.dll
Syntax
public class ImageConfigurationsResource
Constructors
ImageConfigurationsResource(IClientService)
Constructs a new resource.
Declaration
public ImageConfigurationsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
Google.Apis.Services.IClientService | service |
Methods
Upload(String, ImageConfigurationsResource.UploadMediaUpload.ImageTypeEnum, Stream, String)
Uploads an image for a resource with the given ID and image type.
Declaration
public virtual ImageConfigurationsResource.UploadMediaUpload Upload(string resourceId, ImageConfigurationsResource.UploadMediaUpload.ImageTypeEnum imageType, Stream stream, string contentType)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceId | The ID of the resource used by this method. |
ImageConfigurationsResource.UploadMediaUpload.ImageTypeEnum | imageType | Selects which image in a resource for this method. |
System.IO.Stream | stream | The stream to upload. See remarks for further information. |
System.String | contentType | The content type of the stream to upload. |
Returns
Type | Description |
---|---|
ImageConfigurationsResource.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
Upload(String, ImageConfigurationsResource.UploadRequest.ImageTypeEnum)
Uploads an image for a resource with the given ID and image type.
Declaration
public virtual ImageConfigurationsResource.UploadRequest Upload(string resourceId, ImageConfigurationsResource.UploadRequest.ImageTypeEnum imageType)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceId | The ID of the resource used by this method. |
ImageConfigurationsResource.UploadRequest.ImageTypeEnum | imageType | Selects which image in a resource for this method. |
Returns
Type | Description |
---|---|
ImageConfigurationsResource.UploadRequest |