Show / Hide Table of Contents

Class EditsResource.ImagesResource

The "images" collection of methods.

Inheritance
System.Object
EditsResource.ImagesResource
Namespace: Google.Apis.AndroidPublisher.v2
Assembly: Google.Apis.AndroidPublisher.v2.dll
Syntax
public class ImagesResource : object

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

Unique identifier for the Android app that is being updated; for example, "com.spiffygame".

System.String editId

Unique identifier for this edit.

System.String language

The language code (a BCP-47 language tag) of the localized listing whose images are to read or modified. For example, to select Austrian German, pass "de-AT".

EditsResource.ImagesResource.DeleteRequest.ImageTypeEnum imageType
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.

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

Unique identifier for the Android app that is being updated; for example, "com.spiffygame".

System.String editId

Unique identifier for this edit.

System.String language

The language code (a BCP-47 language tag) of the localized listing whose images are to read or modified. For example, to select Austrian German, pass "de-AT".

EditsResource.ImagesResource.DeleteallRequest.ImageTypeEnum imageType
Returns
Type Description
EditsResource.ImagesResource.DeleteallRequest

List(String, String, String, EditsResource.ImagesResource.ListRequest.ImageTypeEnum)

Lists all images for the specified language and image type.

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

Unique identifier for the Android app that is being updated; for example, "com.spiffygame".

System.String editId

Unique identifier for this edit.

System.String language

The language code (a BCP-47 language tag) of the localized listing whose images are to read or modified. For example, to select Austrian German, pass "de-AT".

EditsResource.ImagesResource.ListRequest.ImageTypeEnum imageType
Returns
Type Description
EditsResource.ImagesResource.ListRequest

Upload(String, String, String, EditsResource.ImagesResource.UploadMediaUpload.ImageTypeEnum, Stream, String)

Uploads a new image and adds it to the list of images for the specified language and image type.

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

Unique identifier for the Android app that is being updated; for example, "com.spiffygame".

System.String editId

Unique identifier for this edit.

System.String language

The language code (a BCP-47 language tag) of the localized listing whose images are to read or modified. For example, to select Austrian German, pass "de-AT".

EditsResource.ImagesResource.UploadMediaUpload.ImageTypeEnum imageType
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 to 0 before reading commences. If stream 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 a new image and adds it to the list of images for the specified language and image type.

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

Unique identifier for the Android app that is being updated; for example, "com.spiffygame".

System.String editId

Unique identifier for this edit.

System.String language

The language code (a BCP-47 language tag) of the localized listing whose images are to read or modified. For example, to select Austrian German, pass "de-AT".

EditsResource.ImagesResource.UploadRequest.ImageTypeEnum imageType
Returns
Type Description
EditsResource.ImagesResource.UploadRequest
Back to top