Changed ConnectSignupResponse to be an enum

This commit is contained in:
Scott Lovegrove 2015-06-10 18:58:34 +01:00
parent 9e631318ac
commit f3b9f1e332
2 changed files with 7 additions and 7 deletions

View File

@ -1,10 +1,9 @@

namespace MediaBrowser.Model.ApiClient
namespace MediaBrowser.Model.ApiClient
{
public class ConnectSignupResponse
public enum ConnectSignupResponse
{
public bool IsSuccessful { get; set; }
public bool IsEmailInUse { get; set; }
public bool IsUsernameInUse { get; set; }
Success,
EmailInUse,
UsernameInUser
}
}

View File

@ -185,7 +185,8 @@ namespace MediaBrowser.Model.ApiClient
/// <param name="email">The email.</param>
/// <param name="username">The username.</param>
/// <param name="password">The password.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
Task<ConnectSignupResponse> SignupForConnect(string email, string username, string password);
Task<ConnectSignupResponse> SignupForConnect(string email, string username, string password, CancellationToken cancellationToken = default(CancellationToken));
}
}