예제 #1
0
	public void SetTwitterFollowerData( AsTwitterFollower friend)
	{
		m_friendData = friend;
		desc.Text = friend.name;
		
		StartCoroutine( LoadPortraitImage( friend.profile_image));
	}
예제 #2
0
	public void InsertTwitterFollower( AsTwitterFollower listData)
	{
		UIListItem item = m_list.CreateItem( m_objChoiceItem) as UIListItem;

		AsTwitterItem baseFriendItem = item.gameObject.GetComponent<AsTwitterItem>();
		if( null == baseFriendItem)
			return;

		baseFriendItem.SetTwitterFollowerData( listData);
	}
예제 #3
0
	public void TwitterFollowerInsert( string name, double id, string screen_name, string profile_image)
	{
		Debug.Log( "data name: " + name + "id: " + id +"screen_name: "+ screen_name+"profile_image: "+ profile_image);

		if( m_TwitterFollowerList.ContainsKey( id) != true)
		{
			AsTwitterFollower twitterFollower = new AsTwitterFollower();

			twitterFollower.id = id;
			twitterFollower.name = name;
			twitterFollower.screen_name = screen_name;
			twitterFollower.profile_image = profile_image;
			
			m_TwitterFollowerList.Add( id, twitterFollower);
		}
	}
예제 #4
0
	public AsTwitterFollower[] GetTwitterFollowerByPage( int page)
	{
		int index = 0;
		int pageIndex = page * TWITTERFOLLOWERS_LIST_PER_PAGE;
		int id = 0;
	
		AsTwitterFollower[] arrayTW = new AsTwitterFollower[TWITTERFOLLOWERS_LIST_PER_PAGE];
		foreach( KeyValuePair<double, AsTwitterFollower> pair in m_TwitterFollowerList)
		{
			//Start
			if( index >= pageIndex && index < pageIndex + TWITTERFOLLOWERS_LIST_PER_PAGE)
			{
				arrayTW[id] = pair.Value;
				++id;
			}
			
			++index;
			
			if( index > pageIndex + TWITTERFOLLOWERS_LIST_PER_PAGE)
				break;
		}
		
		return arrayTW;
	}