StreamUnit CreateStreamUnit(StreamActionType actionType, string actionInfo) { StreamUnit su = new StreamUnit { key = key, dateTimeStart = strDateTimeStart, timeDelta = timeDelta, actionType = actionType.ToString(), actionInfo = actionInfo }; return(su); }
public void RecordAction(StreamActionType actionType, string actionInfo) { if (sessionState != StreamState.record && actionType != StreamActionType.apiRequest && actionType != StreamActionType.apiResponse && actionType != StreamActionType.gps) { return; } // timeDelta = Time.realtimeSinceStartup - timeDeltaStart; StreamUnit su = CreateStreamUnit(actionType, actionInfo); stream.Add(su); // string txt = JsonUtility.ToJson(su); SetTextStream(txt); if (ynCloud) { StringToCloud(txt); } }
private StreamAction(Guid id, string key, StreamActionType actionType) { Id = id; Key = key; ActionType = actionType; }
private StreamAction(string stream, StreamActionType actionType) { Key = stream; ActionType = actionType; }
private StreamAction(Guid stream, StreamActionType actionType) { Id = stream; ActionType = actionType; }
public StreamAction(StreamActionType type, string uri) { Uri = uri; ActionType = type; }