Ejemplo n.º 1
0
        public static Protocol.Request CreateOutlineFileRequest(Protocol.FileIdentifier fileIdentifier)
        {
            Protocol.Request ret = new Protocol.Request();

            ret.requestType        = Protocol.Request.RequestType.OutlineFile;
            ret.outlineFileRequest = new Protocol.Request.OutlineFileRequest();
            ret.outlineFileRequest.fileIdentifier = fileIdentifier;

            return(ret);
        }
Ejemplo n.º 2
0
        internal static Protocol.Request CreateFileParseMessagesRequest(Protocol.FileIdentifier fileIdentifier)
        {
            Protocol.Request ret = new Protocol.Request();

            ret.requestType = Protocol.Request.RequestType.FileParseMessages;
            ret.fileParseMessagesRequest = new Protocol.Request.FileParseMessagesRequest();
            ret.fileParseMessagesRequest.fileIdentifier = fileIdentifier;

            return(ret);
        }
Ejemplo n.º 3
0
        public static Protocol.Request CreateDoneWithFileRequest(Protocol.FileIdentifier fileIdentifier)
        {
            Protocol.Request ret = new Protocol.Request();

            ret.requestType = Protocol.Request.RequestType.DisposeFile;

            ret.disposeFileRequest = new Protocol.Request.DisposeFileRequest();
            ret.disposeFileRequest.fileIdentifier = fileIdentifier;

            return(ret);
        }