public static AuthRequest Create(Token token, Trust trust) { Scope scope = null; if (trust != null) { scope = new Scope() { Trust = trust, }; } return new AuthRequest() { Auth = new Auth() { Identity = new Identity() { Methods = new[] { "token" }, Token = token }, Scope = scope } }; }
public static TrustRequest Create(Trust trust) { return new TrustRequest() { Trust = trust }; }
public static RestMessage<AuthRequest> CreateMessage(Token token, Trust trust) { return new RestMessage<AuthRequest>(Create(token, trust)); }
public static RestMessage<TrustRequest> CreateMessage(Trust trust) { return new RestMessage<TrustRequest>(Create(trust)); }