apidocs / com.srv4pos.server.api.infrastructure / IdentifierInfo

IdentifierInfo

class IdentifierInfo : Info

Methods called "new" will return the identifier of newly created entity by using this class.

User: Kirill, Date: 14.09.13 14:55

Constructors

<init>

IdentifierInfo()

Methods called "new" will return the identifier of newly created entity by using this class.

Properties

identifier

var identifier: String?

It has format {serverId}-{autoincrementId}. Where serverId - unique id of the server, autoincrementId - just +1 unique long id within the server. Both identifiers are in scale of notation with basis 32. To serialize number to the string .ALLOWED_LETTERS array used. Use com.srv4pos.server.api.infrastructure.http.HttpHelper.shortify to serialize. *

Companion Object Properties

ALLOWED_LETTERS

const val ALLOWED_LETTERS: String

Companion Object Functions

of

fun of(identifier: String): IdentifierInfo

Extension Functions

toJson

fun Info.toJson(): String