jhoerr / box-csharp-sdk-v2

A C# client for the Box API (v2).
http://developers.box.com/docs/
11 stars 15 forks source link

Missing Role Level #6

Closed mascon closed 11 years ago

mascon commented 11 years ago

A user can have the following levels

User Co-admin Admin

Currently only User and Admin are supported. This results in co-admin's being incorrectly labelled as Users.

I think it is this that needs to be changed

namespace BoxApi.V2.Model.Enum { public enum UserRole { [EnumMember(Value = "user")] User, [EnumMember(Value = "admin")] Admin, } }

to this

namespace BoxApi.V2.Model.Enum { public enum UserRole { [EnumMember(Value = "user")] User, [EnumMember(Value = "coadmin")] CoAdmin, [EnumMember(Value = "admin")] Admin, } }

jhoerr commented 11 years ago

Fixed in d3863fdd08. Please feel free to issue pull requests for fixes like this.