Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (26 sloc) 0.415 kB
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
namespace LoveSeat
{
public class CouchUser : Document
{
public CouchUser(JObject jobj)
: base(jobj)
{
}
public IEnumerable<string> Roles
{
get
{
if (!this["roles"].HasValues)
{
yield return null;
}
foreach (var role in this["roles"].Values())
{
yield return role.Value<string>();
}
}
}
}
}
Jump to Line
Something went wrong with that request. Please try again.