コード例 #1
0
 /// <summary>
 /// Sets the data with the contents of another SelfDescribingJson
 /// </summary>
 /// <returns>The SelfDescribingJson with a nested SelfDescribingJson</returns>
 /// <param name="data">The SelfDescribingJson to nest</param>
 public SelfDescribingJson SetData(SelfDescribingJson data)
 {
     if (data == null)
     {
         return(this);
     }
     payload[Constants.DATA] = data.Payload;
     return(this);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SnowplowTracker.Payload.SelfDescribingJson"/> class.
 /// </summary>
 /// <param name="schema">A schema String</param>
 /// <param name="data">A SelfDescribingJson object</param>
 public SelfDescribingJson(string schema, SelfDescribingJson data)
 {
     SetSchema(schema);
     SetData(data);
 }