Class MylibraryResource.BookshelvesResource
The "bookshelves" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Books.v1
Assembly: Google.Apis.Books.v1.dll
Syntax
public class BookshelvesResource
Constructors
BookshelvesResource(IClientService)
Constructs a new resource.
Declaration
public BookshelvesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
Volumes
Gets the Volumes resource.
Declaration
public virtual MylibraryResource.BookshelvesResource.VolumesResource Volumes { get; }
Property Value
| Type | Description |
|---|---|
| MylibraryResource.BookshelvesResource.VolumesResource |
Methods
AddVolume(String, String)
Adds a volume to a bookshelf.
Declaration
public virtual MylibraryResource.BookshelvesResource.AddVolumeRequest AddVolume(string shelf, string volumeId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | shelf | ID of bookshelf to which to add a volume. |
| System.String | volumeId | ID of volume to add. |
Returns
| Type | Description |
|---|---|
| MylibraryResource.BookshelvesResource.AddVolumeRequest |
ClearVolumes(String)
Clears all volumes from a bookshelf.
Declaration
public virtual MylibraryResource.BookshelvesResource.ClearVolumesRequest ClearVolumes(string shelf)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | shelf | ID of bookshelf from which to remove a volume. |
Returns
| Type | Description |
|---|---|
| MylibraryResource.BookshelvesResource.ClearVolumesRequest |
Get(String)
Retrieves metadata for a specific bookshelf belonging to the authenticated user.
Declaration
public virtual MylibraryResource.BookshelvesResource.GetRequest Get(string shelf)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | shelf | ID of bookshelf to retrieve. |
Returns
| Type | Description |
|---|---|
| MylibraryResource.BookshelvesResource.GetRequest |
List()
Retrieves a list of bookshelves belonging to the authenticated user.
Declaration
public virtual MylibraryResource.BookshelvesResource.ListRequest List()
Returns
| Type | Description |
|---|---|
| MylibraryResource.BookshelvesResource.ListRequest |
MoveVolume(String, String, Int32)
Moves a volume within a bookshelf.
Declaration
public virtual MylibraryResource.BookshelvesResource.MoveVolumeRequest MoveVolume(string shelf, string volumeId, int volumePosition)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | shelf | ID of bookshelf with the volume. |
| System.String | volumeId | ID of volume to move. |
| System.Int32 | volumePosition | Position on shelf to move the item (0 puts the item before the current first item, 1 puts it between the first and the second and so on.) |
Returns
| Type | Description |
|---|---|
| MylibraryResource.BookshelvesResource.MoveVolumeRequest |
RemoveVolume(String, String)
Removes a volume from a bookshelf.
Declaration
public virtual MylibraryResource.BookshelvesResource.RemoveVolumeRequest RemoveVolume(string shelf, string volumeId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | shelf | ID of bookshelf from which to remove a volume. |
| System.String | volumeId | ID of volume to remove. |
Returns
| Type | Description |
|---|---|
| MylibraryResource.BookshelvesResource.RemoveVolumeRequest |