Esempio n. 1
0
    StreamUnit CreateStreamUnit(StreamActionType actionType, string actionInfo)
    {
        StreamUnit su = new StreamUnit
        {
            key           = key,
            dateTimeStart = strDateTimeStart,
            timeDelta     = timeDelta,
            actionType    = actionType.ToString(),
            actionInfo    = actionInfo
        };

        return(su);
    }
Esempio n. 2
0
    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);
        }
    }
Esempio n. 3
0
 private StreamAction(Guid id, string key, StreamActionType actionType)
 {
     Id         = id;
     Key        = key;
     ActionType = actionType;
 }
Esempio n. 4
0
 private StreamAction(string stream, StreamActionType actionType)
 {
     Key        = stream;
     ActionType = actionType;
 }
Esempio n. 5
0
 private StreamAction(Guid stream, StreamActionType actionType)
 {
     Id         = stream;
     ActionType = actionType;
 }
 public StreamAction(StreamActionType type, string uri)
 {
     Uri        = uri;
     ActionType = type;
 }
 public StreamAction(StreamActionType type, string uri)
 {
     Uri = uri;
     ActionType = type;
 }