/// <summary> /// Deprecated Method for adding a new object to the overlays EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTooverlays(overlay overlay) { base.AddObject("overlays", overlay); }
/// <summary> /// Create a new overlay object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="latitude">Initial value of the latitude property.</param> /// <param name="longitude">Initial value of the longitude property.</param> /// <param name="name">Initial value of the name property.</param> /// <param name="type_id">Initial value of the type_id property.</param> /// <param name="enable">Initial value of the enable property.</param> public static overlay Createoverlay(global::System.Int32 id, global::System.Int32 latitude, global::System.Int32 longitude, global::System.String name, global::System.Int32 type_id, global::System.Boolean enable) { overlay overlay = new overlay(); overlay.id = id; overlay.latitude = latitude; overlay.longitude = longitude; overlay.name = name; overlay.type_id = type_id; overlay.enable = enable; return overlay; }
public void SetOverlay(int latitude, int longitude, string name, int type) { OperationContext context = OperationContext.Current; MessageProperties messageProperties = context.IncomingMessageProperties; RemoteEndpointMessageProperty endpointProperty = messageProperties[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty; overlay ol = new overlay(); ol.latitude = latitude; ol.longitude = longitude; ol.name = name; ol.type_id = type; ol.enable = false; ol.ip = endpointProperty.Address; overlayDao.setOverlay(ol); }