/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1-dev * User agent: apibuilder app.apibuilder.io/nicolai-moraru/joglog-api/0.0.1-dev/scala_mock_models */ package nm.joglog.api.v0.mock { object Factories { def randomString(length: Int = 24): String = { _root_.scala.util.Random.alphanumeric.take(length).mkString } def makePatchOperation(): nm.joglog.api.v0.models.PatchOperation = nm.joglog.api.v0.models.PatchOperation.Test def makeStringOrInteger(): nm.joglog.api.v0.models.StringOrInteger = nm.joglog.api.v0.models.StringOrInteger.String def makeTimePatchPath(): nm.joglog.api.v0.models.TimePatchPath = nm.joglog.api.v0.models.TimePatchPath.Distance def makeUserPatchPath(): nm.joglog.api.v0.models.UserPatchPath = nm.joglog.api.v0.models.UserPatchPath.Username def makeUserRole(): nm.joglog.api.v0.models.UserRole = nm.joglog.api.v0.models.UserRole.User def makeTime(): nm.joglog.api.v0.models.Time = nm.joglog.api.v0.models.Time( id = 1, distance = 1, time = 1, createdAt = _root_.org.joda.time.DateTime.now, updatedAt = _root_.org.joda.time.DateTime.now ) def makeTimeMinimal(): nm.joglog.api.v0.models.TimeMinimal = nm.joglog.api.v0.models.TimeMinimal( distance = 1, time = 1 ) def makeTimePatchEntry(): nm.joglog.api.v0.models.TimePatchEntry = nm.joglog.api.v0.models.TimePatchEntry( op = .mock.Factories.makeOperation(), path = time.mock.Factories.makePath(), value = 1 ) def makeUser(): nm.joglog.api.v0.models.User = nm.joglog.api.v0.models.User( id = 1, username = Factories.randomString(24), role = .mock.Factories.makeRole(), createdAt = _root_.org.joda.time.DateTime.now, updatedAt = _root_.org.joda.time.DateTime.now ) def makeUserMinimal(): nm.joglog.api.v0.models.UserMinimal = nm.joglog.api.v0.models.UserMinimal( username = Factories.randomString(24), password = Factories.randomString(24) ) def makeUserPatchEntry(): nm.joglog.api.v0.models.UserPatchEntry = nm.joglog.api.v0.models.UserPatchEntry( op = .mock.Factories.makeOperation(), path = user.mock.Factories.makePath(), value = nm.joglog.api.v0.mock.Factories.makeStringOrInteger() ) } }