David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 1 | // |
2 | // TMessage.cs | ||||
3 | // | ||||
4 | // Begin: Aug 19, 2007 | ||||
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 5 | // Authors: |
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 6 | // 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 | |||||
13 | using System; | ||||
14 | using System.Collections.Generic; | ||||
15 | using System.Text; | ||||
16 | |||||
17 | namespace Thrift.Protocol | ||||
18 | { | ||||
David Reiss | 46dc629 | 2008-02-06 22:09:58 +0000 | [diff] [blame] | 19 | public struct TMessage |
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 20 | { |
David Reiss | d831a21 | 2009-02-13 03:09:52 +0000 | [diff] [blame] | 21 | private string name; |
22 | private TMessageType type; | ||||
23 | private int seqID; | ||||
24 | |||||
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 25 | public TMessage(string name, TMessageType type, int seqid) |
David Reiss | c9d06ee | 2008-03-18 18:22:43 +0000 | [diff] [blame] | 26 | :this() |
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 27 | { |
David Reiss | d831a21 | 2009-02-13 03:09:52 +0000 | [diff] [blame] | 28 | this.name = name; |
29 | this.type = type; | ||||
30 | this.seqID = seqid; | ||||
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 31 | } |
32 | |||||
33 | public string Name | ||||
34 | { | ||||
David Reiss | d831a21 | 2009-02-13 03:09:52 +0000 | [diff] [blame] | 35 | get { return name; } |
36 | set { name = value; } | ||||
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 37 | } |
38 | |||||
39 | public TMessageType Type | ||||
40 | { | ||||
David Reiss | d831a21 | 2009-02-13 03:09:52 +0000 | [diff] [blame] | 41 | get { return type; } |
42 | set { type = value; } | ||||
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 43 | } |
44 | |||||
45 | public int SeqID | ||||
46 | { | ||||
David Reiss | d831a21 | 2009-02-13 03:09:52 +0000 | [diff] [blame] | 47 | get { return seqID; } |
48 | set { seqID = value; } | ||||
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 49 | } |
50 | } | ||||
51 | } |