Package com.appspot.bambugame.server.data

Examples of com.appspot.bambugame.server.data.PlurkPlayerDailyPoint


        if (tAnswerer.PLURK_USER_NAME != null && tAnswerer.PLURK_USER_NAME.isEmpty()) tAnswerer.PLURK_USER_NAME = pAnswererPlurkNickName;
       
        tObjectify.put( tAnswerer );
       
        // now we add to the daily point score
        PlurkPlayerDailyPoint tAnswererDailyPoint = null;
        long tyyyyMMddDate = Long.parseLong( new SimpleDateFormat( "yyyyMMdd" ).format( Calendar.getInstance( TimeZone.getTimeZone( "UTC" ) ).getTime() ) );
        long tDailyPointKey = Long.parseLong( pAnswererPlurkID + "" + tyyyyMMddDate );
       
        try
        {
            tAnswererDailyPoint = tObjectify.get( PlurkPlayerDailyPoint.class, tDailyPointKey );
        }
        catch (NotFoundException ex)
        {
            // expected
            tAnswererDailyPoint = new PlurkPlayerDailyPoint(pAnswererPlurkID, tyyyyMMddDate, pAnswererPlurkNickName);
        }
       
        tAnswererDailyPoint.POINT = tAnswererDailyPoint.POINT + 10;
       
        tObjectify.put( tAnswererDailyPoint );
View Full Code Here


            JSONObject tAddResponse = PlurkService.getInstance().plurkAdd( "Top 10 plurkers for today (" + new SimpleDateFormat( "dd-MM-yyyy" ).format( Calendar.getInstance( TimeZone.getTimeZone( "UTC" ) ).getTime() ) + ") starting from 07:00 WIB : (updated hourly)", Qualifier.SHARES );
            long tNewPlurkID = tAddResponse.getLong( "plurk_id" );
           
            for (int i = 0; i < tTopTenPlurkers.size(); i++)
            {
                PlurkPlayerDailyPoint tAnswerer = tTopTenPlurkers.get( i );
               
                System.out.println("User with id " + tAnswerer.PLURK_ID + " got " + tAnswerer.POINT);
               
                plurkTopScoreAnswerer(tNewPlurkID, i+1, tAnswerer);
            }
View Full Code Here

TOP

Related Classes of com.appspot.bambugame.server.data.PlurkPlayerDailyPoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.