-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18eb7b9
commit 5ac3710
Showing
325 changed files
with
8,626 additions
and
10,513 deletions.
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
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
48 changes: 48 additions & 0 deletions
48
Lpp.Adapters/Lpp.Dns.DataMart.Client/Lib/Caching/CacheDocument.cs
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,48 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.Serialization; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Lpp.Dns.DataMart.Client.Lib.Caching | ||
{ | ||
[DataContract, Serializable] | ||
public class CacheDocument : Model.Document | ||
{ | ||
internal CacheDocument() : base(string.Empty, string.Empty, string.Empty) | ||
{ | ||
|
||
} | ||
|
||
public CacheDocument(string documentID, string mimeType, string filename) : base(documentID, mimeType, filename) | ||
{ | ||
|
||
} | ||
|
||
public CacheDocument(Guid documentID, string mimeType, string filename, bool isViewable, int size, string kind) : base(documentID, mimeType, filename, isViewable, size, kind) | ||
{ | ||
|
||
} | ||
|
||
public Guid ID | ||
{ | ||
get | ||
{ | ||
return Guid.Parse(DocumentID); | ||
} | ||
} | ||
|
||
[DataMember] | ||
public string UploadedOn | ||
{ | ||
get;set; | ||
} | ||
|
||
internal static CacheDocument FromDocument(Model.Document document) | ||
{ | ||
return new CacheDocument(Guid.Parse(document.DocumentID), document.MimeType, document.Filename, document.IsViewable, document.Size, document.Kind); | ||
} | ||
|
||
} | ||
} |
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
Oops, something went wrong.