コード例 #1
0
    static void AddFriends(RTMClient client, HashSet <long> uids)
    {
        int errorCode = client.AddFriends(uids);

        if (errorCode != com.fpnn.ErrorCode.FPNN_EC_OK)
        {
            Debug.Log("Add friends in sync failed, error code is " + errorCode);
        }
        else
        {
            Debug.Log("Add friends in sync success");
        }
    }
コード例 #2
0
        //------------------------[ Friend Operations ]-------------------------//
        static void AddFriends(RTMClient client, HashSet <long> uids)
        {
            int errorCode = client.AddFriends(uids);

            if (errorCode != com.fpnn.ErrorCode.FPNN_EC_OK)
            {
                Console.WriteLine("Add friends in sync failed, error code is {0}.", errorCode);
            }
            else
            {
                Console.WriteLine("Add friends in sync success");
            }
        }