Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CustomEncoding.cs
1using System;
2
4{
8 public class CustomEncoding
9 {
10 private readonly string contentType;
11 private readonly byte[] encoded;
12 private readonly Uri uri;
13
19 public CustomEncoding(string ContentType, byte[] Encoded)
20 : this(ContentType, Encoded, null)
21 {
22 }
23
30 public CustomEncoding(string ContentType, byte[] Encoded, Uri Uri)
31 {
32 this.contentType = ContentType;
33 this.encoded = Encoded;
34 this.uri = Uri;
35 }
36
40 public string ContentType => this.contentType;
41
45 public byte[] Encoded => this.encoded;
46
50 public Uri Uri => this.uri;
51 }
52}
A custom encoded object.
CustomEncoding(string ContentType, byte[] Encoded, Uri Uri)
A custom encoded object.
Uri Uri
Optional original URI of content.
CustomEncoding(string ContentType, byte[] Encoded)
A custom encoded object.
string ContentType
Internet Content-Type of encoded object.