aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/MachineStudio.Dispensers/Models/DispenserModel.cs
blob: 94bf24e85ece68f1b6251b742faeabcdf1319058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL;
using Tango.BL.Entities;

namespace Tango.MachineStudio.Dispensers.Models
{
    public class DispenserModel
    {
        private ObservablesContext _context;

        public Dispenser Dispenser { get; set; }

        public DispenserModel(Dispenser dispenser, ObservablesContext context)
        {
            Dispenser = dispenser;
            _context = context;
        }


    }
}
lass="n">message = init_value; } size_t double_array__get_packed_size (const DoubleArray *message) { assert(message->base.descriptor == &double_array__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t double_array__pack (const DoubleArray *message, uint8_t *out) { assert(message->base.descriptor == &double_array__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t double_array__pack_to_buffer (const DoubleArray *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &double_array__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } DoubleArray * double_array__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (DoubleArray *) protobuf_c_message_unpack (&double_array__descriptor, allocator, len, data); } void double_array__free_unpacked (DoubleArray *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &double_array__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor double_array__field_descriptors[1] = { { "", 1, PROTOBUF_C_LABEL_REPEATED, PROTOBUF_C_TYPE_DOUBLE, offsetof(DoubleArray, n_data), offsetof(DoubleArray, data), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned double_array__field_indices_by_name[] = { 0, /* field[0] = Data */ }; static const ProtobufCIntRange double_array__number_ranges[1 + 1] = { { 1, 0 }, { 0, 1 } }; const ProtobufCMessageDescriptor double_array__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "", "", "", "", sizeof(DoubleArray), 1, double_array__field_descriptors, double_array__field_indices_by_name, 1, double_array__number_ranges, (ProtobufCMessageInit) double_array__init, NULL,NULL,NULL /* reserved[123] */ };