# CommandParser

class CommandParser

Created by pedro on 13/4/22.

## Constructors

CommandParser
Link copied to clipboard
constructor()

## Types

Companion
Link copied to clipboard
object Companion

## Functions

getSessionId
Link copied to clipboard
fun getSessionId(command: Command): String
loadServerPorts
Link copied to clipboard
fun loadServerPorts(command: Command, protocol: Protocol, audioClientPorts: Array<Int?>, videoClientPorts: Array<Int?>, audioServerPorts: Array<Int?>, videoServerPorts: Array<Int?>): Boolean
parseCommand
Link copied to clipboard
fun parseCommand(commandText: String): Command

Command send by pusher/player

parseResponse
Link copied to clipboard
fun parseResponse(method: Method, responseText: String): Command

Response received after send a command