Class EditsResource.ImagesResource
The "images" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.AndroidPublisher.v3
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class ImagesResource
Constructors
ImagesResource(IClientService)
Constructs a new resource.
Declaration
public ImagesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(String, String, String, EditsResource.ImagesResource.DeleteRequest.ImageTypeEnum, String)
Deletes the image (specified by id) from the edit.
Declaration
public virtual EditsResource.ImagesResource.DeleteRequest Delete(string packageName, string editId, string language, EditsResource.ImagesResource.DeleteRequest.ImageTypeEnum imageType, string imageId)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | Package name of the app. |
System.String | editId | Identifier of the edit. |
System.String | language | Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). |
EditsResource.ImagesResource.DeleteRequest.ImageTypeEnum | imageType | Type of the Image. |
System.String | imageId | Unique identifier an image within the set of images attached to this edit. |
Returns
Type | Description |
---|---|
EditsResource.ImagesResource.DeleteRequest |
Deleteall(String, String, String, EditsResource.ImagesResource.DeleteallRequest.ImageTypeEnum)
Deletes all images for the specified language and image type. Returns an empty response if no images are found.
Declaration
public virtual EditsResource.ImagesResource.DeleteallRequest Deleteall(string packageName, string editId, string language, EditsResource.ImagesResource.DeleteallRequest.ImageTypeEnum imageType)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | Package name of the app. |
System.String | editId | Identifier of the edit. |
System.String | language | Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). Providing a language that is not supported by the App is a no-op. |
EditsResource.ImagesResource.DeleteallRequest.ImageTypeEnum | imageType | Type of the Image. Providing an image type that refers to no images is a no-op. |
Returns
Type | Description |
---|---|
EditsResource.ImagesResource.DeleteallRequest |
List(String, String, String, EditsResource.ImagesResource.ListRequest.ImageTypeEnum)
Lists all images. The response may be empty.
Declaration
public virtual EditsResource.ImagesResource.ListRequest List(string packageName, string editId, string language, EditsResource.ImagesResource.ListRequest.ImageTypeEnum imageType)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | Package name of the app. |
System.String | editId | Identifier of the edit. |
System.String | language | Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). There must be a store listing for the specified language. |
EditsResource.ImagesResource.ListRequest.ImageTypeEnum | imageType | Type of the Image. Providing an image type that refers to no images will return an empty response. |
Returns
Type | Description |
---|---|
EditsResource.ImagesResource.ListRequest |
Upload(String, String, String, EditsResource.ImagesResource.UploadMediaUpload.ImageTypeEnum, Stream, String)
Uploads an image of the specified language and image type, and adds to the edit.
Declaration
public virtual EditsResource.ImagesResource.UploadMediaUpload Upload(string packageName, string editId, string language, EditsResource.ImagesResource.UploadMediaUpload.ImageTypeEnum imageType, Stream stream, string contentType)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | Package name of the app. |
System.String | editId | Identifier of the edit. |
System.String | language | Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). Providing a language that is not supported by the App is a no-op. |
EditsResource.ImagesResource.UploadMediaUpload.ImageTypeEnum | imageType | Type of the Image. |
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 |
---|---|
EditsResource.ImagesResource.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, String, String, EditsResource.ImagesResource.UploadRequest.ImageTypeEnum)
Uploads an image of the specified language and image type, and adds to the edit.
Declaration
public virtual EditsResource.ImagesResource.UploadRequest Upload(string packageName, string editId, string language, EditsResource.ImagesResource.UploadRequest.ImageTypeEnum imageType)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | Package name of the app. |
System.String | editId | Identifier of the edit. |
System.String | language | Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). Providing a language that is not supported by the App is a no-op. |
EditsResource.ImagesResource.UploadRequest.ImageTypeEnum | imageType | Type of the Image. |
Returns
Type | Description |
---|---|
EditsResource.ImagesResource.UploadRequest |