Advertisement
Guest User

Untitled

a guest
May 16th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.84 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using Tristan;
  5. namespace Tristan.inproc
  6. {
  7.   public class PlayerInfo:IPlayerInfo
  8.   {
  9.     private static int nextId=1;
  10.     public PlayerInfo(IPlayerRegistrationInfo reg)
  11.     {
  12.       this._address = reg.Address;
  13.       this._balance = 0;
  14.       this._city = reg.City;
  15.       this._country = reg.Country;
  16.       this._name = reg.Name;
  17.       this._postcode = reg.PostCode;
  18.       this._playerId = nextId++;
  19.       this._username = reg.Username;
  20.       this._password = reg.Password;
  21.     }
  22.    
  23.     private string _password;
  24.     internal string Password { get { return _password; } }
  25.  
  26.     private string _name;
  27.     public string Name
  28.     {
  29.       get { return _name; }
  30.       set { _name = value; }
  31.     }
  32.  
  33.     private string _address;
  34.     public string Address
  35.     {
  36.       get { return _address; }
  37.       set { _address = value; }
  38.     }
  39.  
  40.     private string _city;
  41.     public string City
  42.     {
  43.       get { return _city; }
  44.       set { _city = value; }
  45.     }
  46.  
  47.     private string _postcode;
  48.     public string PostCode
  49.     {
  50.       get { return _postcode; }
  51.       set { _postcode = value; }
  52.     }
  53.     private string _country;
  54.     public string Country
  55.     {
  56.       get { return _country;  }
  57.       set { _country = value; }
  58.     }
  59.  
  60.     private string _username;
  61.     public string Username
  62.     {
  63.       get { return _username; }
  64.       set { _username = value; }
  65.     }
  66.  
  67.     private decimal _balance;
  68.     public decimal Balance
  69.     {
  70.       get { return _balance; }
  71.       set { _balance = value; }
  72.     }
  73.     private int _playerId;
  74.     public int PlayerId
  75.     {
  76.       get { return _playerId; }
  77.       set { _playerId = value; }
  78.     }
  79.     private bool _verified;
  80.     public bool IsVerified {
  81.       get { return _verified; }
  82.       set { _verified = value; }
  83.     }
  84.   }
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement