public static Offset <Message> CreateMessage(FlatBufferBuilder builder, MessType messType = MessType.mRequest, ServType serverType = ServType.svMorph, ComType comtype = ComType.Undef, VectorOffset paramsOffset = default(VectorOffset), VectorOffset sentencesOffset = default(VectorOffset), VectorOffset paragraphsOffset = default(VectorOffset), VectorOffset documentsOffset = default(VectorOffset), VectorOffset containersOffset = default(VectorOffset), long dbID = 0) { builder.StartObject(9); Message.AddDbID(builder, dbID); Message.AddComtype(builder, comtype); Message.AddContainers(builder, containersOffset); Message.AddDocuments(builder, documentsOffset); Message.AddParagraphs(builder, paragraphsOffset); Message.AddSentences(builder, sentencesOffset); Message.AddParams(builder, paramsOffset); Message.AddServerType(builder, serverType); Message.AddMessType(builder, messType); return(Message.EndMessage(builder)); }
public BaseService(BaseRepository <T> baseRepository, ServType servType = ServType.hasntBaseModel) { _BaseRepository = baseRepository; this.servType = servType; }
public static void AddServerType(FlatBufferBuilder builder, ServType serverType) { builder.AddSbyte(1, (sbyte)serverType, 0); }