LocalizationVo.as 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. package com.imt.intimamedia.vo
  2. {
  3. import com.imt.intimamedia.helpers.AMFDateConverter;
  4. [RemoteClass(alias="com.imt.intimamedia.vo.LocalizationVo")]
  5. [Bindable]
  6. /**
  7. * Objet localisation
  8. */
  9. public class LocalizationVo
  10. {
  11. private var _countryCode : String = "";
  12. private var _countryName : String = "";
  13. private var _continentCode : String = "";
  14. private var _ip : String = "";
  15. private var _date : Date = new Date();
  16. private var _region : String = "";
  17. private var _city : String = "";
  18. private var _currencyCode : String = "";
  19. private var _currencySymbol : String = "";
  20. /**
  21. * Code du pays
  22. *
  23. * @default ""
  24. */
  25. public function get countryCode () : String
  26. {
  27. return _countryCode;
  28. }
  29. /**
  30. * @private
  31. */
  32. public function set countryCode ( value : String ) : void
  33. {
  34. _countryCode = value;
  35. }
  36. /**
  37. * Nom du pays
  38. *
  39. * @default ""
  40. */
  41. public function get countryName () : String
  42. {
  43. return _countryName;
  44. }
  45. /**
  46. * @private
  47. */
  48. public function set countryName ( value : String ) : void
  49. {
  50. _countryName = value;
  51. }
  52. /**
  53. * Nom du continent
  54. *
  55. * @default ""
  56. */
  57. public function get continentCode () : String
  58. {
  59. return _continentCode;
  60. }
  61. /**
  62. * @private
  63. */
  64. public function set continentCode ( value : String ) : void
  65. {
  66. _continentCode = value;
  67. }
  68. /**
  69. * Nom du continent
  70. *
  71. * @default ""
  72. */
  73. public function get ip () : String
  74. {
  75. return _ip;
  76. }
  77. /**
  78. * @private
  79. */
  80. public function set ip ( value : String ) : void
  81. {
  82. _ip = value;
  83. }
  84. /**
  85. * Date de la localisation
  86. *
  87. * @default Date
  88. */
  89. public function get date () : Date
  90. {
  91. return _date;
  92. }
  93. /**
  94. * @private
  95. */
  96. public function set date ( value : * ) : void
  97. {
  98. _date = AMFDateConverter.convert( value );
  99. }
  100. /**
  101. * Region de la localisation
  102. *
  103. * @default Date
  104. */
  105. public function get region () : String
  106. {
  107. return _region;
  108. }
  109. /**
  110. * @private
  111. */
  112. public function set region ( value : String ) : void
  113. {
  114. _region = value;
  115. }
  116. /**
  117. * Ville de la localisation
  118. *
  119. * @default Date
  120. */
  121. public function get city () : String
  122. {
  123. return _city;
  124. }
  125. /**
  126. * @private
  127. */
  128. public function set city ( value : String ) : void
  129. {
  130. _city = value;
  131. }
  132. /**
  133. * Code de la monnaie de la localisation
  134. *
  135. * @default Date
  136. */
  137. public function get currencyCode () : String
  138. {
  139. return _currencyCode;
  140. }
  141. /**
  142. * @private
  143. */
  144. public function set currencyCode ( value : String ) : void
  145. {
  146. _currencyCode = value;
  147. }
  148. /**
  149. * Symbole de la monnaie de la localisation
  150. *
  151. * @default Date
  152. */
  153. public function get currencySymbol () : String
  154. {
  155. return _currencySymbol;
  156. }
  157. /**
  158. * @private
  159. */
  160. public function set currencySymbol ( value : String ) : void
  161. {
  162. if( value == "€" )
  163. value = "€";
  164. _currencySymbol = value;
  165. }
  166. }
  167. }