Table of Contents

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
StringStorageRecord
Implements
Inherited Members

Constructors

StringStorageRecord()

Constructor.

public StringStorageRecord()

StringStorageRecord(string, DateTime?)

Constructor.

public StringStorageRecord(string dataString, DateTime? recordDateTime = null)

Parameters

dataString string

The data string store.

recordDateTime DateTime?

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

data string

The data to set.

Exceptions

ArgumentNullException

Thrown if parameter data is 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.