Class TInnQuestionRecord

Unit

Declaration

type TInnQuestionRecord = class(TInterfacedObject, IInnQuestionRecord)

Description

Record of a question and answer that the player must answer to register citizenship with an inn

Hierarchy

Overview

Methods

Public function GetByteSize: Cardinal;
Public function GetQuestion: string;
Public procedure SetQuestion(Question: string);
Public function GetAnswer: string;
Public procedure SetAnswer(Answer: string);
Public procedure Serialize(Writer: TEoWriter);
Public class function Deserialize(Reader: TEoReader): TInnQuestionRecord;

Properties

Public property ByteSize: Cardinal read GetByteSize;
Public property Question: string read GetQuestion write SetQuestion;
Public property Answer: string read GetAnswer write SetAnswer;

Description

Methods

Public function GetByteSize: Cardinal;

This item has no description.

Public function GetQuestion: string;

This item has no description.

Public procedure SetQuestion(Question: string);

This item has no description.

Public function GetAnswer: string;

This item has no description.

Public procedure SetAnswer(Answer: string);

This item has no description.

Public procedure Serialize(Writer: TEoWriter);

Serializes this TInnQuestionRecord object to the provided TEoWriter.

Parameters
Writer
The writer that this object will be serialized to
Public class function Deserialize(Reader: TEoReader): TInnQuestionRecord;

Deserializes an instance of TInnQuestionRecord from the provided TEoReader.

Parameters
Reader
The reader that the object will be deserialized from
Returns

The deserialized object

Properties

Public property ByteSize: Cardinal read GetByteSize;

The size of the data that this object was deserialized from.

Note
0 if the instance was not created by the Deserialize method.

Public property Question: string read GetQuestion write SetQuestion;

Note
Length must be 252 or less

Public property Answer: string read GetAnswer write SetAnswer;

Note
Length must be 252 or less


Generated by PasDoc 0.16.0-snapshot.