home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / com / facebook / data / users / UserData.as < prev   
Encoding:
Text File  |  2010-06-23  |  4.9 KB  |  157 lines

  1. package com.facebook.data.users
  2. {
  3.    import flash.events.Event;
  4.    import flash.events.EventDispatcher;
  5.    import flash.events.IEventDispatcher;
  6.    import mx.events.PropertyChangeEvent;
  7.    
  8.    public class UserData implements IEventDispatcher
  9.    {
  10.       private var _bindingEventDispatcher:EventDispatcher = new EventDispatcher(IEventDispatcher(this));
  11.       
  12.       private var _160985414first_name:String;
  13.       
  14.       private var _3373707name:String;
  15.       
  16.       private var _2013122196last_name:String;
  17.       
  18.       private var _2076227591timezone:Number;
  19.       
  20.       private var _115792uid:String;
  21.       
  22.       private var _1700293062affiations:AffiliationCollection;
  23.       
  24.       public function UserData()
  25.       {
  26.          super();
  27.       }
  28.       
  29.       public function dispatchEvent(param1:Event) : Boolean
  30.       {
  31.          return this._bindingEventDispatcher.dispatchEvent(param1);
  32.       }
  33.       
  34.       public function set timezone(param1:Number) : void
  35.       {
  36.          var _loc2_:Object = this._2076227591timezone;
  37.          if(_loc2_ !== param1)
  38.          {
  39.             this._2076227591timezone = param1;
  40.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"timezone",_loc2_,param1));
  41.          }
  42.       }
  43.       
  44.       public function hasEventListener(param1:String) : Boolean
  45.       {
  46.          return this._bindingEventDispatcher.hasEventListener(param1);
  47.       }
  48.       
  49.       [Bindable(event="propertyChange")]
  50.       public function get affiations() : AffiliationCollection
  51.       {
  52.          return this._1700293062affiations;
  53.       }
  54.       
  55.       public function removeEventListener(param1:String, param2:Function, param3:Boolean = false) : void
  56.       {
  57.          this._bindingEventDispatcher.removeEventListener(param1,param2,param3);
  58.       }
  59.       
  60.       [Bindable(event="propertyChange")]
  61.       public function get name() : String
  62.       {
  63.          return this._3373707name;
  64.       }
  65.       
  66.       public function set affiations(param1:AffiliationCollection) : void
  67.       {
  68.          var _loc2_:Object = this._1700293062affiations;
  69.          if(_loc2_ !== param1)
  70.          {
  71.             this._1700293062affiations = param1;
  72.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"affiations",_loc2_,param1));
  73.          }
  74.       }
  75.       
  76.       public function addEventListener(param1:String, param2:Function, param3:Boolean = false, param4:int = 0, param5:Boolean = false) : void
  77.       {
  78.          this._bindingEventDispatcher.addEventListener(param1,param2,param3,param4,param5);
  79.       }
  80.       
  81.       [Bindable(event="propertyChange")]
  82.       public function get uid() : String
  83.       {
  84.          return this._115792uid;
  85.       }
  86.       
  87.       [Bindable(event="propertyChange")]
  88.       public function get last_name() : String
  89.       {
  90.          return this._2013122196last_name;
  91.       }
  92.       
  93.       public function set name(param1:String) : void
  94.       {
  95.          var _loc2_:Object = this._3373707name;
  96.          if(_loc2_ !== param1)
  97.          {
  98.             this._3373707name = param1;
  99.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"name",_loc2_,param1));
  100.          }
  101.       }
  102.       
  103.       public function willTrigger(param1:String) : Boolean
  104.       {
  105.          return this._bindingEventDispatcher.willTrigger(param1);
  106.       }
  107.       
  108.       public function set uid(param1:String) : void
  109.       {
  110.          var _loc2_:Object = this._115792uid;
  111.          if(_loc2_ !== param1)
  112.          {
  113.             this._115792uid = param1;
  114.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"uid",_loc2_,param1));
  115.          }
  116.       }
  117.       
  118.       public function set last_name(param1:String) : void
  119.       {
  120.          var _loc2_:Object = this._2013122196last_name;
  121.          if(_loc2_ !== param1)
  122.          {
  123.             this._2013122196last_name = param1;
  124.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"last_name",_loc2_,param1));
  125.          }
  126.       }
  127.       
  128.       public function set first_name(param1:String) : void
  129.       {
  130.          var _loc2_:Object = this._160985414first_name;
  131.          if(_loc2_ !== param1)
  132.          {
  133.             this._160985414first_name = param1;
  134.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"first_name",_loc2_,param1));
  135.          }
  136.       }
  137.       
  138.       [Bindable(event="propertyChange")]
  139.       public function get timezone() : Number
  140.       {
  141.          return this._2076227591timezone;
  142.       }
  143.       
  144.       [Bindable(event="propertyChange")]
  145.       public function get first_name() : String
  146.       {
  147.          return this._160985414first_name;
  148.       }
  149.       
  150.       public function toString() : String
  151.       {
  152.          return "[ UserData uid: " + this.uid + " affiation:" + this.affiations + " first_name:" + this.first_name + " last_name:" + this.last_name + " name:" + this.name + " timezone: " + this.timezone + "]";
  153.       }
  154.    }
  155. }
  156.  
  157.