David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 1 | // |
| 2 | // TField.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 TField |
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 20 | { |
David Reiss | 7f42bcf | 2008-01-11 20:59:12 +0000 | [diff] [blame] | 21 | public TField(string name, TType type, short id) |
| 22 | { |
| 23 | Name = name; |
| 24 | Type = type; |
| 25 | ID = id; |
| 26 | } |
| 27 | |
| 28 | public string Name |
| 29 | { |
| 30 | get; |
| 31 | set; |
| 32 | } |
| 33 | |
| 34 | public TType Type |
| 35 | { |
| 36 | get; |
| 37 | set; |
| 38 | } |
| 39 | |
| 40 | public short ID |
| 41 | { |
| 42 | get; |
| 43 | set; |
| 44 | } |
| 45 | } |
| 46 | } |