File tree Expand file tree Collapse file tree 6 files changed +0
-12
lines changed
Expand file tree Collapse file tree 6 files changed +0
-12
lines changed Original file line number Diff line number Diff line change 11package scorekeep ;
22
3- import com .amazonaws .regions .Regions ;
43import com .amazonaws .services .dynamodbv2 .AmazonDynamoDB ;
54import com .amazonaws .services .dynamodbv2 .AmazonDynamoDBClientBuilder ;
65import com .amazonaws .services .dynamodbv2 .datamodeling .DynamoDBMapper ;
1514public class GameModel {
1615 /** AWS SDK credentials. */
1716 private AmazonDynamoDB client = AmazonDynamoDBClientBuilder .standard ()
18- .withRegion (Regions .fromName (System .getenv ("AWS_REGION" )))
1917 .build ();
2018 private DynamoDBMapper mapper = new DynamoDBMapper (client );
2119 private final SessionModel sessionModel = new SessionModel ();
Original file line number Diff line number Diff line change 11package scorekeep ;
22
3- import com .amazonaws .regions .Regions ;
43import com .amazonaws .services .dynamodbv2 .AmazonDynamoDB ;
54import com .amazonaws .services .dynamodbv2 .AmazonDynamoDBClientBuilder ;
65import com .amazonaws .services .dynamodbv2 .datamodeling .DynamoDBMapper ;
1413public class MoveModel {
1514 /** AWS SDK credentials. */
1615 private AmazonDynamoDB client = AmazonDynamoDBClientBuilder .standard ()
17- .withRegion (Regions .fromName (System .getenv ("AWS_REGION" )))
1816 .build ();
1917 private DynamoDBMapper mapper = new DynamoDBMapper (client );
2018 private final SessionModel sessionModel = new SessionModel ();
Original file line number Diff line number Diff line change 11package scorekeep ;
22
3- import com .amazonaws .regions .Regions ;
43import com .amazonaws .services .dynamodbv2 .AmazonDynamoDB ;
54import com .amazonaws .services .dynamodbv2 .AmazonDynamoDBClientBuilder ;
65import com .amazonaws .services .dynamodbv2 .datamodeling .DynamoDBMapper ;
@@ -12,7 +11,6 @@ public class SessionModel {
1211
1312 /** AWS SDK credentials. */
1413 private AmazonDynamoDB client = AmazonDynamoDBClientBuilder .standard ()
15- .withRegion (Regions .fromName (System .getenv ("AWS_REGION" )))
1614 .build ();
1715 private DynamoDBMapper mapper = new DynamoDBMapper (client );
1816
Original file line number Diff line number Diff line change 11package scorekeep ;
22
3- import com .amazonaws .regions .Regions ;
43import com .amazonaws .services .dynamodbv2 .AmazonDynamoDB ;
54import com .amazonaws .services .dynamodbv2 .AmazonDynamoDBClientBuilder ;
65import com .amazonaws .services .dynamodbv2 .datamodeling .DynamoDBMapper ;
1817public class StateModel {
1918 /** AWS SDK credentials. */
2019 private AmazonDynamoDB client = AmazonDynamoDBClientBuilder .standard ()
21- .withRegion (Regions .fromName (System .getenv ("AWS_REGION" )))
2220 .build ();
2321 private DynamoDBMapper mapper = new DynamoDBMapper (client );
2422 private final SessionModel sessionModel = new SessionModel ();
Original file line number Diff line number Diff line change 11package scorekeep ;
22
3- import com .amazonaws .regions .Regions ;
43import com .amazonaws .services .dynamodbv2 .AmazonDynamoDB ;
54import com .amazonaws .services .dynamodbv2 .AmazonDynamoDBClientBuilder ;
65import com .amazonaws .services .dynamodbv2 .datamodeling .DynamoDBMapper ;
1110public class UserModel {
1211 /** AWS SDK credentials. */
1312 private AmazonDynamoDB client = AmazonDynamoDBClientBuilder .standard ()
14- .withRegion (Regions .fromName (System .getenv ("AWS_REGION" )))
1513 .build ();
1614 private DynamoDBMapper mapper = new DynamoDBMapper (client );
1715
Original file line number Diff line number Diff line change 11package scorekeep ;
22
3- import com .amazonaws .regions .Regions ;
43import com .amazonaws .services .sns .AmazonSNS ;
54import com .amazonaws .services .sns .AmazonSNSClientBuilder ;
65import com .amazonaws .services .sns .model .PublishRequest ;
1211public class Utils {
1312 private static final Logger logger = LoggerFactory .getLogger (Utils .class );
1413 private static AmazonSNS snsclient = AmazonSNSClientBuilder .standard ()
15- .withRegion (Regions .fromName (System .getenv ("AWS_REGION" )))
1614 .build ();
1715 /*
1816 * Send a notification email.
You can’t perform that action at this time.
0 commit comments