コード例 #1
0
 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));
 }
コード例 #2
0
 public Connection()
 {
     methods = new ConnectionMethods(this);
     NetworkManager.LocalNode.Connections.Add(this);
 }
コード例 #3
0
        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();
        }
コード例 #4
0
 public Status getFriends(int user_id, int offset, String datetime)
 {
     return(ConnectionMethods.getFriends(user_id, offset, datetime));
 }
コード例 #5
0
 public Status accepteFriendRequest(int Request_id, String Date_time_accepted)
 {
     return(ConnectionMethods.onAcceptingFriendRequest(Request_id, Date_time_accepted));
 }
コード例 #6
0
 public Status sendFriendRequest(int Sender_id, int Receiver_id, String Date_time_sent)
 {
     return(ConnectionMethods.onSendingNewFriemdRequest(Sender_id, Receiver_id, Date_time_sent));
 }
コード例 #7
0
 public Status deleteFriend(int Request_id, int u1, int u2)
 {
     return(ConnectionMethods.onDeleteFriend(Request_id, u1, u2));
 }
コード例 #8
0
 public Status deleteFriendRequest(int Request_id, int user_id)
 {
     return(ConnectionMethods.onDeleteFriendRequest(Request_id, user_id));
 }
コード例 #9
0
 public Status getInCommeingConnectionsRequest(int User_id, int offset, String datetime)
 {
     return(ConnectionMethods.onGettingIncommingConnectionsRequest(User_id, offset, datetime));
 }