예제 #1
0
        public int MesagesWork(string typeMesages, ref string description, ref int totalResulte, ref List <Models.Messages> mesagess, ref int page, params string[] dataMesages)
        {
            mesages = new Mesages();
            int stateMesges = 1;

            if (CrossConnectivity.Current.IsConnected)
            {
                if (typeMesages == "OptionsGet")
                {
                    mesages.OptionsGet(dataMesages[1], dataMesages[0], dataMesages[2], ref description);
                }
                else if (typeMesages == "MessagesGet")
                {
                    stateMesges = mesages.MessagesGet(Convert.ToInt32(dataMesages[1]), dataMesages[0], dataMesages[2], Convert.ToInt32(dataMesages[3]), dataMesages[4], ref page, ref description, ref mesagess, ref totalResulte);
                }
                else if (typeMesages == "MesageCountToDay")
                {
                    int totalResulteTmp = 0;
                    stateMesges   = mesages.MessagesGetCount(Convert.ToInt32(dataMesages[1]), dataMesages[0], dataMesages[2], 1, "", ref totalResulteTmp);
                    totalResulte += totalResulteTmp;
                    stateMesges   = mesages.MessagesGetCount(Convert.ToInt32(dataMesages[1]), dataMesages[0], dataMesages[2], 2, "", ref totalResulteTmp);
                    totalResulte += totalResulteTmp;
                    stateMesges   = mesages.MessagesGetCount(Convert.ToInt32(dataMesages[1]), dataMesages[0], dataMesages[2], 3, "", ref totalResulteTmp);
                    totalResulte += totalResulteTmp;
                }
                else if (typeMesages == "Conversation")
                {
                    stateMesges = mesages.MessageHistoryGet(Convert.ToInt32(dataMesages[1]), dataMesages[0], dataMesages[2], Convert.ToInt32(dataMesages[3]), 0, ref mesagess, ref totalResulte, ref description);
                }
            }
            mesages = null;
            return(stateMesges);
        }
예제 #2
0
        public int MesagesWork(string typeMesages, int Id, bool DisplayToPublic, bool EmailCopyToSender, ref string description, params string[] dataMesages)
        {
            mesages = new Mesages();
            int stateMesges = 1;

            if (CrossConnectivity.Current.IsConnected)
            {
                if (typeMesages == "SendMessageReply")
                {
                    stateMesges = mesages.SendMessageReply(Convert.ToInt32(dataMesages[1]), dataMesages[0], dataMesages[2], Id, DisplayToPublic, EmailCopyToSender, dataMesages[3], ref description);
                }
            }
            mesages = null;
            return(stateMesges);
        }
예제 #3
0
        public int MesagesWork(string typeMesages, List <string> EBayItemID, ref string description, ref Listings listings, params string[] dataMesages)
        {
            mesages = new Mesages();
            int stateMesges = 1;

            if (CrossConnectivity.Current.IsConnected)
            {
                if (typeMesages == "ListingsGet")
                {
                    stateMesges = mesages.ListingsGet(Convert.ToInt32(dataMesages[0]), dataMesages[1], dataMesages[2], EBayItemID, ref description, ref listings);
                }
            }
            mesages = null;
            return(stateMesges);
        }
예제 #4
0
        public int MesagesWork(string typeMesages, ref int totalResulte, ref OrderInfo orderInfo, params string[] dataMesages)
        {
            mesages = new Mesages();
            int stateMesges = 1;

            if (CrossConnectivity.Current.IsConnected)
            {
                if (typeMesages == "Purchases")
                {
                    stateMesges = mesages.OrderHistoryGet(Convert.ToInt32(dataMesages[1]), dataMesages[0], dataMesages[2], Convert.ToInt32(dataMesages[3]), Convert.ToInt32(dataMesages[4]), ref orderInfo);
                }
            }
            mesages = null;
            return(stateMesges);
        }
예제 #5
0
        public int MesagesWork(string typeMesages, int Id, ref string description, params string[] dataMesages)
        {
            mesages = new Mesages();
            int stateMesges = 1;

            if (CrossConnectivity.Current.IsConnected)
            {
                if (typeMesages == "MessageDelete")
                {
                    stateMesges = mesages.MessageDelete(Convert.ToInt32(dataMesages[1]), dataMesages[0], dataMesages[2], Id, ref description);
                }
                else if (typeMesages == "MessageSetRead")
                {
                    stateMesges = mesages.MessageSetRead(Convert.ToInt32(dataMesages[1]), dataMesages[0], dataMesages[2], Id, ref description);
                }
            }
            mesages = null;
            return(stateMesges);
        }