コード例 #1
0
ファイル: AsTwitterItem.cs プロジェクト: ftcaicai/ArkClient
	public void SetTwitterFollowerData( AsTwitterFollower friend)
	{
		m_friendData = friend;
		desc.Text = friend.name;
		
		StartCoroutine( LoadPortraitImage( friend.profile_image));
	}
コード例 #2
0
ファイル: AsSMSTab.cs プロジェクト: ftcaicai/ArkClient
	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
ファイル: AsSocialData.cs プロジェクト: ftcaicai/ArkClient
	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
ファイル: AsSocialData.cs プロジェクト: ftcaicai/ArkClient
	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;
	}