Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ConversionState.cs
1using System.IO;
2using Waher.Script;
3
4namespace Waher.Content
5{
9 public class ConversionState
10 {
26 public ConversionState(string FromContentType, Stream From, string FromFileName, string LocalResourceName, string URL,
27 string ToContentType, Stream To, Variables Session, params string[] PossibleContentTypes)
28 {
29 this.FromContentType = FromContentType;
30 this.From = From;
31 this.FromFileName = FromFileName;
32 this.LocalResourceName = LocalResourceName;
33 this.URL = URL;
34 this.ToContentType = ToContentType;
35 this.To = To;
36 this.Session = Session;
37 this.PossibleContentTypes = PossibleContentTypes;
38 }
39
43 public string FromContentType { get; }
44
48 public Stream From { get; }
49
54 public string FromFileName { get; set; }
55
59 public string LocalResourceName { get; set; }
60
64 public string URL { get; }
65
70 public string ToContentType { get; set; }
71
75 public Stream To { get; }
76
80 public Variables Session { get; }
81
86 public string[] PossibleContentTypes { get; }
87 }
88}
Contains the state of a content conversion process.
Variables Session
Session states.
string ToContentType
Content type of the content to convert to. This value might be changed, in case the converter finds a...
string[] PossibleContentTypes
Possible content types the converter is allowed to convert to. Can be null if there are no alternativ...
ConversionState(string FromContentType, Stream From, string FromFileName, string LocalResourceName, string URL, string ToContentType, Stream To, Variables Session, params string[] PossibleContentTypes)
Contains the state of a content conversion process.
string LocalResourceName
Local resource name of file, if accessed from a web server.
string FromContentType
Content type of the content to convert from.
Stream To
Stream pointing to where binary representation of content is to be sent.
string FromFileName
If the content is coming from a file, this parameter contains the name of that file....
string URL
URL of resource, if accessed from a web server.
Stream From
Stream pointing to binary representation of content.
Collection of variables.
Definition: Variables.cs:25