Ejemplo n.º 1
0
        public ChatListViewController(RCConversationType[] types1, RCConversationType[] types2 = null)
            : base(ToNSObjectsArray(types1), ToNSObjectsArray(types2))
        {

        }
		public static void SendRequestMessage (RCConversationType conversationType, string targetId, string operatorUserId, string operatorUserAlias, string data, string message, string extra, string pushContent, string pushData)
		{
			if (Application.platform != RuntimePlatform.Android)
				return;
			_plugin.Call ("_sendRequestMessage", (int)conversationType, targetId, operatorUserId, operatorUserAlias, data, message, extra, pushContent, pushData);
		}
		public static void ClearMessagesUnreadStatus (RCConversationType conversationType, string targetId)
		{
			if (Application.platform != RuntimePlatform.Android)
				return;
			_plugin.Call ("_clearMessagesUnreadStatus", (int)conversationType, targetId);
		}
Ejemplo n.º 4
0
		public static void SendRequestMessage (RCConversationType conversationType, string targetId, string operatorUserId, string operatorUserAlias, string data, string message, string extra, string pushContent, string pushData)
		{
			Binding.SendRequestMessage (conversationType, targetId, operatorUserId, operatorUserAlias, data, message, extra, pushContent, pushData);
		}
		public static void SendRequestMessage (RCConversationType conversationType, string targetId, string operatorUserId, string operatorUserAlias, string data, string message, string extra, string pushContent, string pushData)
		{
			if (Application.platform == RuntimePlatform.IPhonePlayer)
				_sendRequestMessage ((int)conversationType, targetId, operatorUserId, operatorUserAlias, data, message, extra, pushContent, pushData);
		}
Ejemplo n.º 6
0
		public static void GetRemoteHistoryMessages (RCConversationType conversationType, string targetId, long dataTime, int count)
		{
			Binding.GetRemoteHistoryMessages (conversationType, targetId, dataTime, count);
		}
Ejemplo n.º 7
0
		public static void SendTextMessage (RCConversationType conversationType, string targetId, string content, string extra, string pushContent, string pushData)
		{
			Binding.SendTextMessage (conversationType, targetId, content, extra, pushContent, pushData);
		}
		public static void SendTextMessage (RCConversationType conversationType, string targetId, string content, string extra, string pushContent, string pushData)
		{
			if (Application.platform == RuntimePlatform.IPhonePlayer)
				_sendTextMessage ((int)conversationType, targetId, content, extra, pushContent, pushData);
		}
		public static void GetLatestMessages (RCConversationType conversationType, string targetId, int count)
		{
			if (Application.platform != RuntimePlatform.Android)
				return;
			_plugin.Call<string> ("_getLatestMessages", (int)conversationType, targetId, count);
		}
Ejemplo n.º 10
0
		public static void SetConversationNotificationStatus (RCConversationType conversationType, string targetId, RCConversationNotificationStatus conversationNotificationStatus)
		{
			if (Application.platform == RuntimePlatform.IPhonePlayer) {
				bool isBlocked = (conversationNotificationStatus == RCConversationNotificationStatus.DO_NOT_DISTURB);
				_setConversationNotificationStatus ((int)conversationType, targetId, isBlocked);
			}
		}
Ejemplo n.º 11
0
		public static void GetRemoteHistoryMessages (RCConversationType conversationType, string targetId, long recordTime, int count)
		{
			if (Application.platform == RuntimePlatform.IPhonePlayer) {
				_getRemoteHistoryMessages ((int)conversationType, targetId, recordTime, count);
			}
		}
Ejemplo n.º 12
0
		public static void GetConversationNotificationStatus (RCConversationType conversationType, string targetId)
		{
			if (Application.platform == RuntimePlatform.IPhonePlayer) {
				_getConversationNotificationStatus ((int)conversationType, targetId);
			}
		}
Ejemplo n.º 13
0
		public static bool ClearMessagesUnreadStatus (RCConversationType conversationType, string targetId)
		{
			if (Application.platform == RuntimePlatform.IPhonePlayer) {
				return _clearMessagesUnreadStatus ((int)conversationType, targetId);
			}
			return false;
		}
Ejemplo n.º 14
0
		public static void GetLatestMessages (RCConversationType conversationType, string targetId, int count)
		{
			if (Application.platform == RuntimePlatform.IPhonePlayer) {
				string json = _getLatestMessages ((int)conversationType, targetId, count);
				RongCloudManager.inst.onGetLatestMessagesSuccess (json);

			}
		}
Ejemplo n.º 15
0
		public static void GetConversationNotificationStatus (RCConversationType conversationType, string targetId)
		{
			Binding.GetConversationNotificationStatus (conversationType, targetId);
		}
		public static void GetRemoteHistoryMessages (RCConversationType conversationType, string targetId, long dataTime, int count)
		{
			if (Application.platform != RuntimePlatform.Android)
				return;
			_plugin.Call ("_getRemoteHistoryMessages", (int)conversationType, targetId, dataTime, count);
		}
Ejemplo n.º 17
0
		public static void GetLatestMessages (RCConversationType conversationType, string targetId, int count)
		{
			Binding.GetLatestMessages (conversationType, targetId, count);
		}
		public static void SetConversationNotificationStatus (RCConversationType conversationType, string targetId, RCConversationNotificationStatus  conversationNotificationStatus)
		{
			if (Application.platform != RuntimePlatform.Android)
				return;
			_plugin.Call ("_setConversationNotificationStatus", (int)conversationType, targetId, conversationNotificationStatus);
		}
Ejemplo n.º 19
0
		public static void SetConversationNotificationStatus (RCConversationType conversationType, string targetId, RCConversationNotificationStatus  conversationNotificationStatus)
		{
			Binding.SetConversationNotificationStatus (conversationType, targetId, conversationNotificationStatus);
		}
		public static void SendTextMessage (RCConversationType conversationType, string targetId, string content, string extra, string pushContent, string pushData)
		{
			if (Application.platform != RuntimePlatform.Android)
				return;
			_plugin.Call ("_sendTextMessage", (int)conversationType, targetId, content, extra, pushData, pushData);
		}
Ejemplo n.º 21
0
		public static void SendCmdMessage (RCConversationType conversationType, string targetId, string cmdName, string data)
		{
			Binding.SendCmdMessage (conversationType, targetId, cmdName, data);
		}
		public static void SendCmdMessage (RCConversationType conversationType, string targetId, string cmdName, string data)
		{
			if (Application.platform != RuntimePlatform.Android)
				return;
			_plugin.Call ("_sendCmdMessage", (int)conversationType, targetId, cmdName, data, "", "");
		}
Ejemplo n.º 23
0
		public static void ClearMessagesUnreadStatus (RCConversationType conversationType, string targetId)
		{
			Binding.ClearMessagesUnreadStatus (conversationType, targetId);
		}
Ejemplo n.º 24
0
		public static void SendCmdMessage (RCConversationType conversationType, string targetId, string cmdName, string data)
		{
			if (Application.platform == RuntimePlatform.IPhonePlayer)
				_sendCmdMessage ((int)conversationType, targetId, cmdName, data, "", "");
		}