/// <summary> /// Joins the connector space object to the metaverse object with the specified type and ID /// </summary> /// <param name="mvObjectType">The type of metaverse object to join</param> /// <param name="mvObjectId">The ID of the metaverse object to join</param> public void Join(string mvObjectType, Guid mvObjectId) { SyncServer.ThrowOnInvalidObjectType(mvObjectType); string result = ws.Join(this.MAID.ToMmsGuid(), this.ID.ToMmsGuid(), mvObjectType, mvObjectId.ToMmsGuid()); SyncServer.ThrowExceptionOnReturnError(result); this.Refresh(); }
/// <summary> /// Projects a connector space object to the metaverse /// </summary> /// <param name="objectType">The name of the metaverse object type to project the connector space object as</param> /// <returns>Returns the newly created metaverse object</returns> public MVObject Project(string objectType) { SyncServer.ThrowOnInvalidObjectType(objectType); string result = ws.Project(this.MAID.ToMmsGuid(), objectType, this.ID.ToMmsGuid()); if (Guid.TryParse(result, out Guid mvid)) { this.Refresh(); return(SyncServer.GetMVObject(mvid)); } else { SyncServer.ThrowExceptionOnReturnError(result); return(null); } }