Exemple #1
0
        public DocsReq blockAbort(DocsResp startAck, SessionInf usr)
        {
            this.device = usr.device;

            this.blockSeq = startAck.blockSeqReply;

            this.docId      = startAck.RecId();
            this.clientpath = startAck.Fullpath();

            this.a = A.blockAbort;
            return(this);
        }
Exemple #2
0
        public DocsReq blockEnd(DocsResp resp, SessionInf usr)
        {
            this.device = usr.device;

            this.blockSeq = resp.blockSeqReply;

            this.docId      = resp.RecId();
            this.clientpath = resp.Fullpath();

            this.a = A.blockEnd;
            return(this);
        }
Exemple #3
0
        //public DocsReq blockUp(long sequence, DocsResp resp, StringBuilder b64, SessionInf usr) throws SemanticException {
        //	string uri64 = b64.toString();
        //	return blockUp(sequence, resp, uri64, usr);
        //}

        public DocsReq blockUp(long sequence, DocsResp resp, string s64, SessionInf usr)
        {
            this.device = usr.device;
            if (LangExt.isblank(this.device, new string[] { ".", "/" }))
            {
                throw new SemanticException("File to be uploaded must come with user's device id - for distinguish files");
            }

            this.blockSeq = sequence;

            this.docId      = resp.RecId();
            this.clientpath = resp.Fullpath();
            this.uri64      = s64;

            this.a = A.blockUp;
            return(this);
        }