public Status searchUsersByName(int User_id, String Text_cmp, String datetime, int offset) { if (Text_cmp == null) { return(ConnectionMethods.onSearchingUserByName(User_id, "", datetime, offset)); } return(ConnectionMethods.onSearchingUserByName(User_id, Text_cmp, datetime, offset)); }
public Connection() { methods = new ConnectionMethods(this); NetworkManager.LocalNode.Connections.Add(this); }
static HubFocRot() { // Get the connections settings from profile. EventLogger.LogMessage("Constructing STATIC HubFocuser class.", System.Diagnostics.TraceLevel.Info); Profile p = new Profile(); p.DeviceType = "Focuser"; PopulateFocuserTypes(); Trace.WriteLine("Setting connection method"); connectionMethod = (ConnectionMethods)Enum.Parse(typeof(ConnectionMethods), p.GetValue(pDriverID, pConnMeth, "", ConnectionMethods.Serial.ToString())); Trace.WriteLine("Finished setting connection method"); //// Add note to inform users that the second profile item is not used to hold settings... //string msg = "This profile item is not used to store any settings. It's only purpose is to link " + // " the Gemini Focuser 2, shown in the chooser, to a ProgID used for COM object creation."; //p.WriteValue(pUnusedDriverID, "Note:", msg); // Initialize the hubFocusers instance1 = new HubFocRot(FOC_ROT_DEVICE.FOC); instance2 = new HubFocRot(FOC_ROT_DEVICE.ROT); setupFocuserCommunicator(); }
public Status getFriends(int user_id, int offset, String datetime) { return(ConnectionMethods.getFriends(user_id, offset, datetime)); }
public Status accepteFriendRequest(int Request_id, String Date_time_accepted) { return(ConnectionMethods.onAcceptingFriendRequest(Request_id, Date_time_accepted)); }
public Status sendFriendRequest(int Sender_id, int Receiver_id, String Date_time_sent) { return(ConnectionMethods.onSendingNewFriemdRequest(Sender_id, Receiver_id, Date_time_sent)); }
public Status deleteFriend(int Request_id, int u1, int u2) { return(ConnectionMethods.onDeleteFriend(Request_id, u1, u2)); }
public Status deleteFriendRequest(int Request_id, int user_id) { return(ConnectionMethods.onDeleteFriendRequest(Request_id, user_id)); }
public Status getInCommeingConnectionsRequest(int User_id, int offset, String datetime) { return(ConnectionMethods.onGettingIncommingConnectionsRequest(User_id, offset, datetime)); }