Ejemplo 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);
    }
Ejemplo 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);
        }
    }
Ejemplo n.º 3
0
 private StreamAction(Guid id, string key, StreamActionType actionType)
 {
     Id         = id;
     Key        = key;
     ActionType = actionType;
 }
Ejemplo n.º 4
0
 private StreamAction(string stream, StreamActionType actionType)
 {
     Key        = stream;
     ActionType = actionType;
 }
Ejemplo 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;
 }