Class StringStorageRecord
- Namespace
- RetailForce.Fiscalisation.Storage
- Assembly
- RetailForce.Fiscalisation.Model.dll
Simple implementation of StorageRecord just storing a string.
public class StringStorageRecord : StorageRecord, IEquatable<StorageRecord>
- Inheritance
-
objectStringStorageRecord
- Implements
- Inherited Members
Constructors
StringStorageRecord()
Constructor.
public StringStorageRecord()
StringStorageRecord(string, DateTime?)
Constructor.
public StringStorageRecord(string dataString, DateTime? recordDateTime = null)
Parameters
dataStringstringThe data string store.
recordDateTimeDateTime?DateTime of the storage record. Can be null.
Properties
DataString
The data string which is stored.
[JsonProperty("DataString")]
public string DataString { get; }
Property Value
- string
Methods
GetData()
Method to get data property. Override in inherited class to get data in string notation.
protected override string GetData()
Returns
- string
SetData(string)
Method to set data property. Override in inherited class to parse data if necessary.
protected override void SetData(string data)
Parameters
datastringThe data to set.
Exceptions
- ArgumentNullException
Thrown if parameter
datais set to null or Empty.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.