Ejemplo n.º 1
0
        public ChatMsg doSceneByTrans(string talkerName, int nImgMsgTranId)
        {
            if ((nImgMsgTranId <= 0) || string.IsNullOrEmpty(talkerName))
            {
                return(null);
            }
            NetSceneUploadImage sceneInstance = new NetSceneUploadImage();

            return(this.startDoSence(talkerName, null, null, sceneInstance, nImgMsgTranId, 3, null));
        }
Ejemplo n.º 2
0
        public ChatMsg doScene(string talkerName, string filename, byte[] origStream, int msgType = 3, ParamEx param = null)
        {
            if ((string.IsNullOrEmpty(filename) || string.IsNullOrEmpty(talkerName)) || (origStream == null))
            {
                return(null);
            }
            NetSceneUploadImage sceneInstance = new NetSceneUploadImage();

            if (param != null)
            {
                sceneInstance.mIsNeedScale = param.isNeedScale;
            }
            Log.i("UploadImgService", "==============startDoSence,mIsNeedScale = " + sceneInstance.mIsNeedScale);
            return(this.startDoSence(talkerName, filename, origStream, sceneInstance, -1, msgType, param));
        }