Ejemplo n.º 1
0
 /// <summary>
 /// Construct a Mirror object
 /// </summary>
 /// <param name="name">the mirror stream name</param>
 /// <param name="startSeq">the start sequence</param>
 /// <param name="startTime">the start time</param>
 /// <param name="filterSubject">the filter subject</param>
 /// <param name="external">the external reference</param>
 public Mirror(string name, ulong startSeq, DateTime startTime, string filterSubject, External external)
 {
     Name          = name;
     StartSeq      = startSeq;
     StartTime     = startTime;
     FilterSubject = filterSubject;
     External      = external;
 }
Ejemplo n.º 2
0
 internal Mirror(JSONNode mirrorBaseNode)
 {
     Name          = mirrorBaseNode[ApiConstants.Name].Value;
     StartSeq      = mirrorBaseNode[ApiConstants.OptStartSeq].AsUlong;
     StartTime     = JsonUtils.AsDate(mirrorBaseNode[ApiConstants.OptStartTime]);
     FilterSubject = mirrorBaseNode[ApiConstants.FilterSubject].Value;
     External      = External.OptionalInstance(mirrorBaseNode[ApiConstants.External]);
 }
Ejemplo n.º 3
0
 internal Source(JSONNode sourceBaseNode)
 {
     Name          = sourceBaseNode[ApiConstants.Name].Value;
     StartSeq      = sourceBaseNode[ApiConstants.OptStartSeq].AsUlong;
     StartTime     = JsonUtils.AsDate(sourceBaseNode[ApiConstants.OptStartTime]);
     FilterSubject = sourceBaseNode[ApiConstants.FilterSubject].Value;
     External      = External.OptionalInstance(sourceBaseNode[ApiConstants.External]);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Set the external reference.
 /// </summary>
 /// <param name="external">the external</param>
 /// <returns>The Builder</returns>
 public MirrorBuilder WithExternal(External external)
 {
     _external = external;
     return(this);
 }
Ejemplo n.º 5
0
 private bool Equals(External other)
 {
     return(Api == other.Api && Deliver == other.Deliver);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Set the external reference.
 /// </summary>
 /// <param name="external">the external</param>
 /// <returns>The Builder</returns>
 public SourceBuilder WithExternal(External external)
 {
     _external = external;
     return(this);
 }