Class EditsResource.ImagesResource
The "images" collection of methods.
Inherited Members
Namespace: Google.Apis.AndroidPublisher.v3
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class EditsResource.ImagesResource
Constructors
ImagesResource(IClientService)
Constructs a new resource.
Declaration
public ImagesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string, string, 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 |
---|---|---|
string | packageName | Package name of the app. |
string | editId | Identifier of the edit. |
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. |
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, 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 |
---|---|---|
string | packageName | Package name of the app. |
string | editId | Identifier of the edit. |
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, 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 |
---|---|---|
string | packageName | Package name of the app. |
string | editId | Identifier of the edit. |
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, 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 |
---|---|---|
string | packageName | Package name of the app. |
string | editId | Identifier of the edit. |
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. |
Stream | stream | The stream to upload. See remarks for further information. |
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, 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 |
---|---|---|
string | packageName | Package name of the app. |
string | editId | Identifier of the edit. |
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 |