Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add object + content type constructor #174

Open
peschkaj opened this issue Sep 11, 2013 · 1 comment
Open

Add object + content type constructor #174

peschkaj opened this issue Sep 11, 2013 · 1 comment

Comments

@peschkaj
Copy link
Contributor

The current constructor (string, string, object) assumes a Content Type of JSON. This leaves something to be desired. The next ctor assumes (string, string, string, string), which is also undesirable. A new constructor that looks like the following should be created

public RiakObject( string bucket, string key, object value, string contentType)
@ghost ghost assigned peschkaj Sep 11, 2013
@peschkaj
Copy link
Contributor Author

@OJ has suggested RiakObject.CreateAsProtoBuf() and RiakObject.CreateAsJson() to wrap regular ctors so that RiakObject users don't need to mess around with a pile of constructors.

@peschkaj peschkaj removed their assignment Jun 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant