blob: 3818da01e974da3d7186bacf7aac1d41d13edba3 [file] [log] [blame]
David Reiss7f42bcf2008-01-11 20:59:12 +00001//
2// TMessage.cs
3//
4// Begin: Aug 19, 2007
David Reiss0c90f6f2008-02-06 22:18:40 +00005// Authors:
David Reiss7f42bcf2008-01-11 20:59:12 +00006// Todd Berman <tberman@imeem.com>
7//
8// Distributed under the Thrift Software License
9//
10// See accompanying file LICENSE or visit the Thrift site at:
11// http://developers.facebook.com/thrift/using
12
13using System;
14using System.Collections.Generic;
15using System.Text;
16
17namespace Thrift.Protocol
18{
David Reiss46dc6292008-02-06 22:09:58 +000019 public struct TMessage
David Reiss7f42bcf2008-01-11 20:59:12 +000020 {
David Reissd831a212009-02-13 03:09:52 +000021 private string name;
22 private TMessageType type;
23 private int seqID;
24
David Reiss7f42bcf2008-01-11 20:59:12 +000025 public TMessage(string name, TMessageType type, int seqid)
David Reissc9d06ee2008-03-18 18:22:43 +000026 :this()
David Reiss7f42bcf2008-01-11 20:59:12 +000027 {
David Reissd831a212009-02-13 03:09:52 +000028 this.name = name;
29 this.type = type;
30 this.seqID = seqid;
David Reiss7f42bcf2008-01-11 20:59:12 +000031 }
32
33 public string Name
34 {
David Reissd831a212009-02-13 03:09:52 +000035 get { return name; }
36 set { name = value; }
David Reiss7f42bcf2008-01-11 20:59:12 +000037 }
38
39 public TMessageType Type
40 {
David Reissd831a212009-02-13 03:09:52 +000041 get { return type; }
42 set { type = value; }
David Reiss7f42bcf2008-01-11 20:59:12 +000043 }
44
45 public int SeqID
46 {
David Reissd831a212009-02-13 03:09:52 +000047 get { return seqID; }
48 set { seqID = value; }
David Reiss7f42bcf2008-01-11 20:59:12 +000049 }
50 }
51}