ProtoUtils

io.github.positionpal.location.presentation.ProtoUtils
object ProtoUtils

A set of utility methods for working with protocol buffer messages.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ProtoUtils.type

Members list

Value members

Concrete methods

def errorResponse(message: String): Some[Status]

Attributes

Returns

a generic error response with the provided message.

def notFoundResponse(message: String): Some[Status]

Attributes

Returns

a not found response status with the provided message.

def okResponse: Some[Status]

Attributes

Returns

a successful response status.