toEventCode method
Implementation
EventCode toEventCode() {
switch (this) {
case 'GENERIC_EVENT':
return EventCode.genericEvent;
case 'FLEET_CREATED':
return EventCode.fleetCreated;
case 'FLEET_DELETED':
return EventCode.fleetDeleted;
case 'FLEET_SCALING_EVENT':
return EventCode.fleetScalingEvent;
case 'FLEET_STATE_DOWNLOADING':
return EventCode.fleetStateDownloading;
case 'FLEET_STATE_VALIDATING':
return EventCode.fleetStateValidating;
case 'FLEET_STATE_BUILDING':
return EventCode.fleetStateBuilding;
case 'FLEET_STATE_ACTIVATING':
return EventCode.fleetStateActivating;
case 'FLEET_STATE_ACTIVE':
return EventCode.fleetStateActive;
case 'FLEET_STATE_ERROR':
return EventCode.fleetStateError;
case 'FLEET_INITIALIZATION_FAILED':
return EventCode.fleetInitializationFailed;
case 'FLEET_BINARY_DOWNLOAD_FAILED':
return EventCode.fleetBinaryDownloadFailed;
case 'FLEET_VALIDATION_LAUNCH_PATH_NOT_FOUND':
return EventCode.fleetValidationLaunchPathNotFound;
case 'FLEET_VALIDATION_EXECUTABLE_RUNTIME_FAILURE':
return EventCode.fleetValidationExecutableRuntimeFailure;
case 'FLEET_VALIDATION_TIMED_OUT':
return EventCode.fleetValidationTimedOut;
case 'FLEET_ACTIVATION_FAILED':
return EventCode.fleetActivationFailed;
case 'FLEET_ACTIVATION_FAILED_NO_INSTANCES':
return EventCode.fleetActivationFailedNoInstances;
case 'FLEET_NEW_GAME_SESSION_PROTECTION_POLICY_UPDATED':
return EventCode.fleetNewGameSessionProtectionPolicyUpdated;
case 'SERVER_PROCESS_INVALID_PATH':
return EventCode.serverProcessInvalidPath;
case 'SERVER_PROCESS_SDK_INITIALIZATION_TIMEOUT':
return EventCode.serverProcessSdkInitializationTimeout;
case 'SERVER_PROCESS_PROCESS_READY_TIMEOUT':
return EventCode.serverProcessProcessReadyTimeout;
case 'SERVER_PROCESS_CRASHED':
return EventCode.serverProcessCrashed;
case 'SERVER_PROCESS_TERMINATED_UNHEALTHY':
return EventCode.serverProcessTerminatedUnhealthy;
case 'SERVER_PROCESS_FORCE_TERMINATED':
return EventCode.serverProcessForceTerminated;
case 'SERVER_PROCESS_PROCESS_EXIT_TIMEOUT':
return EventCode.serverProcessProcessExitTimeout;
case 'GAME_SESSION_ACTIVATION_TIMEOUT':
return EventCode.gameSessionActivationTimeout;
case 'FLEET_CREATION_EXTRACTING_BUILD':
return EventCode.fleetCreationExtractingBuild;
case 'FLEET_CREATION_RUNNING_INSTALLER':
return EventCode.fleetCreationRunningInstaller;
case 'FLEET_CREATION_VALIDATING_RUNTIME_CONFIG':
return EventCode.fleetCreationValidatingRuntimeConfig;
case 'FLEET_VPC_PEERING_SUCCEEDED':
return EventCode.fleetVpcPeeringSucceeded;
case 'FLEET_VPC_PEERING_FAILED':
return EventCode.fleetVpcPeeringFailed;
case 'FLEET_VPC_PEERING_DELETED':
return EventCode.fleetVpcPeeringDeleted;
case 'INSTANCE_INTERRUPTED':
return EventCode.instanceInterrupted;
}
throw Exception('$this is not known in enum EventCode');
}