This repository has been archived by the owner on Jan 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some user management: finders, token revocation
- Loading branch information
Showing
5 changed files
with
142 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* SpikeLite C# IRC Bot | ||
* Copyright (c) 2012 FreeNode ##Csharp Community | ||
* | ||
* This source is licensed under the terms of the MIT license. Please see the | ||
* distributed license.txt for details. | ||
*/ | ||
|
||
using System; | ||
using SpikeLite.Domain.Model.Authentication; | ||
|
||
namespace SpikeLite.IPC.WebHost.Transport | ||
{ | ||
/// <summary> | ||
/// Provides a transport model version of <see cref="Domain.Model.Authentication.KnownHost"/>. | ||
/// </summary> | ||
public class KnownHost | ||
{ | ||
public long Id { get; set; } | ||
|
||
public string HostMask { get; set; } | ||
|
||
public HostMatchType HostMatchType { get; set; } | ||
|
||
public AccessLevel AccessLevel { get; set; } | ||
|
||
public KnownHostMetaDatum[] MetaData { get; set; } | ||
|
||
public string AccessToken { get; set; } | ||
|
||
public DateTime? AccessTokenIssueTime { get; set; } | ||
|
||
public DateTime? AccessTokenExpiration { get; set; } | ||
|
||
public String EmailAddress { get; set; } | ||
|
||
public AccessFlag[] AccessFlags { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* SpikeLite C# IRC Bot | ||
* Copyright (c) 2012 FreeNode ##Csharp Community | ||
* | ||
* This source is licensed under the terms of the MIT license. Please see the | ||
* distributed license.txt for details. | ||
*/ | ||
|
||
namespace SpikeLite.IPC.WebHost.Transport | ||
{ | ||
/// <summary> | ||
/// Provides a transport model version of the original domain model class, sans object cycles. | ||
/// </summary> | ||
public class KnownHostMetaDatum | ||
{ | ||
public long Id { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the "tag" or description for this datum. | ||
/// </summary> | ||
public string Tag { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the value of this datum. | ||
/// </summary> | ||
public string Value { get; set; } | ||
} | ||
} |