C# Class GoogleCloudSamples.Models.DatastoreBookStore

Inheritance: IBookStore
Exibir arquivo Open project: GoogleCloudPlatform/getting-started-dotnet

Public Methods

Method Description
Create ( Book book ) : void
DatastoreBookStore ( string projectId ) : Google.Datastore.V1

Create a new datastore-backed bookstore.

Delete ( long id ) : void
List ( int pageSize, string nextPageToken ) : BookList
List ( int pageSize, string nextPageToken, string userId = null ) : BookList
Read ( long id ) : Book
Update ( Book book ) : void

Method Details

Create() public method

public Create ( Book book ) : void
book Book
return void

DatastoreBookStore() public method

Create a new datastore-backed bookstore.
public DatastoreBookStore ( string projectId ) : Google.Datastore.V1
projectId string Your Google Cloud project id
return Google.Datastore.V1

Delete() public method

public Delete ( long id ) : void
id long
return void

List() public method

public List ( int pageSize, string nextPageToken ) : BookList
pageSize int
nextPageToken string
return BookList

List() public method

public List ( int pageSize, string nextPageToken, string userId = null ) : BookList
pageSize int
nextPageToken string
userId string
return BookList

Read() public method

public Read ( long id ) : Book
id long
return Book

Update() public method

public Update ( Book book ) : void
book Book
return void