public APConnection ToBatchObjectReference(string endpointLabel, APObjectReference reference) { this.EndpointBLabel = endpointLabel; this.EndpointBContent = null; this.EndpointBId = null; this.EndpointBObjectReference = reference; return Build(); }
/// <summary> /// Creates a new endpoint corresponding to a new APObject. /// </summary> /// <param name="label">The label for the endpoint.</param> /// <param name="objReference">Batch api reference to an APObject associated with the endpoint.</param> public Endpoint(string label, APObjectReference objReference) { this.Label = label; this.ObjectReference = objReference; }
public FluentAPConnection FromBatchObjectReference(string endpointLabel, APObjectReference reference) { this.EndpointALabel = endpointLabel; this.EndpointAContent = null; this.EndpointAId = null; this.EndpointAObjectReference = reference; return this; }
/// <summary> /// Creates a new instance of an APConnection objects for use inside a batch api. /// This api will create a connection between a two new object via their batch api reference. /// </summary> /// <param name="type">The name of the relation for which to create a new connection.</param> /// <param name="labelA">Label for the first endpoint in the connection.</param> /// <param name="objectReferenceA">Batch object reference to the APObject associated with endpoint A.</param> /// <param name="labelB">Label for the second endpoint in the connection.</param> /// <param name="objectReferenceB">Batch object reference to the APObject associated with endpoint B.</param> public APConnection(string type, string labelA, APObjectReference objectReferenceA, string labelB, APObjectReference objectReferenceB) : base(type) { this.Endpoints = new EndpointPair(new Endpoint(labelA, objectReferenceA), new Endpoint(labelB, objectReferenceB)); }