Class FileData
Inheritance
object
FileData
Assembly: .dll
Syntax
[Serializable]
public class FileData
Properties
Api
Declaration
public AIProvider Api { get; set; }
Property Value
Bytes
Declaration
public int Bytes { get; set; }
Property Value
CreatedAt
Declaration
public UnixTime CreatedAt { get; set; }
Property Value
Type |
Description |
UnixTime |
|
Id
Unique identifier for this data.
Declaration
public string Id { get; set; }
Property Value
Declaration
public Metadata Metadata { get; set; }
Property Value
Type |
Description |
Metadata |
|
Name
Declaration
public string Name { get; set; }
Property Value
Purpose
Declaration
public string Purpose { get; set; }
Property Value
Methods
Declaration
public FileData AddMetadata(string key, float value)
Parameters
Type |
Name |
Description |
string |
key |
|
float |
value |
|
Returns
Declaration
public FileData AddMetadata(string key, string value)
Parameters
Type |
Name |
Description |
string |
key |
|
string |
value |
|
Returns
Declaration
public FileData AddMetadata<TEnum>(string key, TEnum value) where TEnum : Enum
Parameters
Type |
Name |
Description |
string |
key |
|
TEnum |
value |
|
Returns
Type Parameters
Declaration
public FileData AddMetadata<TEnum>(TEnum value) where TEnum : Enum
Parameters
Type |
Name |
Description |
TEnum |
value |
|
Returns
Type Parameters
AddPurpose(float)
Declaration
public FileData AddPurpose(float purpose)
Parameters
Type |
Name |
Description |
float |
purpose |
|
Returns
AddPurpose<TEnum>(TEnum)
Declaration
public FileData AddPurpose<TEnum>(TEnum purpose) where TEnum : Enum
Parameters
Type |
Name |
Description |
TEnum |
purpose |
|
Returns
Type Parameters
Equals(FileData)
Declaration
public bool Equals(FileData other)
Parameters
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current object.
|
Returns
Type |
Description |
bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
object.Equals(object)
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A hash code for the current object.
|
Overrides
object.GetHashCode()
Save()
Declaration
SetName(string)
Declaration
public FileData SetName(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
Returns