25 | * For more information, refer to the documenation at 26 | * IMMN. 27 | *
28 | * 29 | * @author pk9069 30 | * @author kh455g 31 | * @since 1.0 32 | * @see com.att.api.immn.service.IMMNService 33 | */ 34 | 35 | package com.att.api.immn.service; 36 | -------------------------------------------------------------------------------- /sdk/server/java/codekit/src/main/java/com/att/api/oauth/package-info.java: -------------------------------------------------------------------------------- 1 | /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 */ 2 | 3 | /* 4 | * Copyright 2014 AT&T 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | /** 20 | * Provides classes for working with the OAuth 2.0 Authorization Framework. 21 | * 22 | *23 | * For more information, refer to the documenation at 24 | * OAuth. 25 | *
26 | * 27 | * @author pk9069 28 | * @since 1.0 29 | * @see com.att.api.oauth.OAuthService 30 | * @see com.att.api.oauth.OAuthToken 31 | */ 32 | package com.att.api.oauth; 33 | -------------------------------------------------------------------------------- /sdk/server/java/codekit/src/main/java/com/att/api/payment/model/AppCategory.java: -------------------------------------------------------------------------------- 1 | package com.att.api.payment.model; 2 | 3 | public enum AppCategory { 4 | INAPP_GAMES(1), 5 | INAPP_OTHER(3), 6 | APP_GAME(4), 7 | APP_OTHER(5); 8 | 9 | private int value; 10 | 11 | private AppCategory(int value){ 12 | this.value = value; 13 | } 14 | 15 | public int getValue(){ 16 | return this.value; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /sdk/server/java/codekit/src/main/java/com/att/api/payment/model/Notary.java: -------------------------------------------------------------------------------- 1 | package com.att.api.payment.model; 2 | 3 | public class Notary { 4 | private String signature; 5 | private String signedDocument; 6 | private String payload; 7 | 8 | public Notary(String payload, String signedDoc, String signature) { 9 | this.signedDocument = signedDoc; 10 | this.signature = signature; 11 | this.payload = payload; 12 | } 13 | 14 | public String getSignedDocument() { 15 | return this.signedDocument; 16 | } 17 | 18 | public String getSignature() { 19 | return this.signature; 20 | } 21 | 22 | public String getPayload(){ 23 | return this.payload; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /sdk/server/java/codekit/src/main/java/com/att/api/payment/model/RefundReason.java: -------------------------------------------------------------------------------- 1 | package com.att.api.payment.model; 2 | 3 | public enum RefundReason { 4 | CP_NONE(1), 5 | CP_LOSS_OF_ELIGIBILITY(2), 6 | CP_PRODUCT_TERMINATION(3), 7 | CP_ABUSE_OF_PRIVILEGES(4), 8 | CP_CONVERSION_TO_NEW_PRODUCT(5), 9 | CP_NONRENEWABLE_PRODUCT(6), 10 | CP_DUPLICATE_SUBSCRIPTION(7), 11 | CP_OTHER(8), 12 | SUBSCRIBER_nONE(9), 13 | SUBSCRIBER_DID_NOT_USE(10), 14 | SUBSCRIBER_TOO_EXPENSIVE(11), 15 | SUBSCRIBER_DID_NOT_LIKE(12), 16 | SUBSCRIBER_REPLACED_BY_SAME_COMPANY(13), 17 | SUBSCRIBER_REPLACED_BY_DIFFERENT_COMPANY(14), 18 | SUBSCRIBER_DUPLICATE_SUBSCRIPTION(15), 19 | SUBSCRIBER_OTHER(16); 20 | 21 | private int value; 22 | 23 | private RefundReason(int value){ 24 | this.value = value; 25 | } 26 | 27 | public int getValue(){ 28 | return this.value; 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /sdk/server/java/codekit/src/main/java/com/att/api/rest/HttpPatch.java: -------------------------------------------------------------------------------- 1 | /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 2 | 3 | /* 4 | * Copyright 2014 AT&T 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package com.att.api.rest; 20 | 21 | import java.net.URI; 22 | import org.apache.http.client.methods.HttpEntityEnclosingRequestBase; 23 | 24 | // http://tools.ietf.org/html/rfc5789 25 | public class HttpPatch extends HttpEntityEnclosingRequestBase { 26 | public HttpPatch(final String uri) { 27 | super(); 28 | setURI(URI.create(uri)); 29 | } 30 | 31 | @Override 32 | public String getMethod() { 33 | return "PATCH"; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /sdk/server/java/codekit/src/main/java/com/att/api/rest/package-info.java: -------------------------------------------------------------------------------- 1 | /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 */ 2 | 3 | /* 4 | * Copyright 2014 AT&T 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | /** 20 | * Provides classes for sending RESTFul requests and handling responses. 21 | * 22 | *23 | * This class follows the dependency inversion principle by applying a varation 24 | * of the adapter pattern. That is, this class is essentially a wrapper with a 25 | * simplified interface to a full http client. 26 | *
27 | * 28 | * @author pk9069 29 | * @since 1.0 30 | * @see com.att.api.rest.RESTClient 31 | */ 32 | 33 | package com.att.api.rest; 34 | -------------------------------------------------------------------------------- /sdk/server/java/codekit/src/main/java/com/att/api/service/package-info.java: -------------------------------------------------------------------------------- 1 | /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 */ 2 | 3 | /* 4 | * Copyright 2014 AT&T 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | /** 20 | * Provides common code for service classes. 21 | * 22 | * @author pk9069 23 | * @author kh455g 24 | * @since 1.0 25 | */ 26 | 27 | package com.att.api.service; 28 | -------------------------------------------------------------------------------- /sdk/server/java/codekit/src/main/java/com/att/api/sms/model/package-info.java: -------------------------------------------------------------------------------- 1 | /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 */ 2 | 3 | /* 4 | * Copyright 2014 AT&T 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | /** 20 | * Provides classes for holding SMS API responses. 21 | * 22 | * @author pk9069 23 | * @since 1.0 24 | */ 25 | 26 | package com.att.api.sms.model; 27 | -------------------------------------------------------------------------------- /sdk/server/java/codekit/src/main/java/com/att/api/sms/service/package-info.java: -------------------------------------------------------------------------------- 1 | /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 */ 2 | 3 | /* 4 | * Copyright 2014 AT&T 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | /** 20 | * Provides classes for working with version 3 of AT&T SMS API. 21 | * 22 | * @author pk9069 23 | * @since 1.0 24 | */ 25 | 26 | package com.att.api.sms.service; 27 | -------------------------------------------------------------------------------- /sdk/server/java/codekit/src/main/java/com/att/api/util/package-info.java: -------------------------------------------------------------------------------- 1 | /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 */ 2 | 3 | /* 4 | * Copyright 2014 AT&T 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | /** 20 | * Provides utility classes with helper methods. 21 | * 22 | * @since 1.0 23 | */ 24 | 25 | package com.att.api.util; 26 | -------------------------------------------------------------------------------- /sdk/server/java/codekit/src/main/java/com/att/api/webhooks/service/CreateChannelArgs.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 AT&T 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.att.api.webhooks.service; 18 | 19 | public final class CreateChannelArgs { 20 | private final String serviceName; 21 | private final String contentType; 22 | private final Double version; 23 | 24 | public CreateChannelArgs(final String serviceName, 25 | final String contentType, final Double version 26 | ) { 27 | this.serviceName = serviceName; 28 | this.contentType = contentType; 29 | this.version = version; 30 | } 31 | 32 | public String getServiceName() { 33 | return this.serviceName; 34 | } 35 | 36 | public String getContentType() { 37 | return this.contentType; 38 | } 39 | 40 | public Double getVersion() { 41 | return this.version; 42 | } 43 | } 44 | 45 | /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 46 | -------------------------------------------------------------------------------- /sdk/server/java/codekit/src/test/java/com/att/api/oauth/OAuthServiceITCase.java: -------------------------------------------------------------------------------- 1 | package com.att.api.oauth; 2 | 3 | import org.junit.Test; 4 | 5 | import com.att.api.rest.RESTException; 6 | 7 | import static org.junit.Assert.assertTrue; 8 | 9 | public class OAuthServiceITCase { 10 | 11 | @Test 12 | public void testGetToken() throws RESTException { 13 | // set these settings to use this integration test 14 | // TODO: move to config file 15 | final String fqdn = ""; 16 | final String clientId = ""; 17 | final String clientSecret = ""; 18 | // RESTClient.setDefaultProxy("proxy.host", 8080); 19 | 20 | if (fqdn == null || fqdn.equals("")) { 21 | final String msg = "OAuth integration test settings not set; skipping."; 22 | System.out.println(msg); 23 | return; 24 | } 25 | 26 | OAuthService osrvc = new OAuthService(fqdn, clientId, clientSecret); 27 | OAuthToken token = osrvc.getToken("SMS"); 28 | 29 | assertTrue(token.getAccessToken() != null); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /sdk/server/java/codekit/src/test/java/com/att/api/rest/APIResponseTest.java: -------------------------------------------------------------------------------- 1 | package com.att.api.rest; 2 | 3 | import org.junit.Rule; 4 | import org.junit.Test; 5 | import org.junit.rules.TemporaryFolder; 6 | 7 | import static org.junit.Assert.assertTrue; 8 | import static org.junit.Assert.assertFalse; 9 | import static org.junit.Assert.assertEquals; 10 | 11 | public class APIResponseTest { 12 | 13 | public void testConstructor() { 14 | // TODO: Finish 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /sdk/server/java/codekit/src/test/java/com/att/api/rest/HttpHeaderTest.java: -------------------------------------------------------------------------------- 1 | package com.att.api.rest; 2 | 3 | import org.junit.BeforeClass; 4 | import org.junit.Test; 5 | 6 | import static org.junit.Assert.assertEquals; 7 | 8 | public class HttpHeaderTest { 9 | private static HttpHeader header; 10 | private static final String NAME = "name"; 11 | private static final String VALUE = "value"; 12 | 13 | @BeforeClass 14 | public static void createHeader() { 15 | HttpHeaderTest.header = new HttpHeader(NAME, VALUE); 16 | } 17 | 18 | @Test 19 | public void testGetName() { 20 | assertEquals(header.getName(), NAME); 21 | } 22 | 23 | @Test 24 | public void testGetValue() { 25 | assertEquals(header.getValue(), VALUE); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /sdk/server/java/codekit/src/test/java/com/att/api/sms/model/SMSSendResponseTest.java: -------------------------------------------------------------------------------- 1 | package com.att.api.sms.model; 2 | 3 | import java.text.ParseException; 4 | 5 | import org.json.JSONObject; 6 | import org.junit.Test; 7 | 8 | import static org.junit.Assert.assertEquals; 9 | 10 | public class SMSSendResponseTest { 11 | 12 | @Test 13 | public void constructor() { 14 | final String msgid = "1"; 15 | final String url = "https://api.att.com"; 16 | SMSSendResponse response = new SMSSendResponse(msgid, url); 17 | 18 | assertEquals(response.getMessageId(), msgid); 19 | assertEquals(response.getResourceUrl(), url); 20 | } 21 | 22 | @Test 23 | public void valueOf() throws ParseException { 24 | final String jstr = new StringBuilder() 25 | .append("{") 26 | .append(" \"outboundSMSResponse\": {") 27 | .append(" \"messageId\":\"1\",") 28 | .append(" \"resourceReference\": {") 29 | .append(" \"resourceURL\":\"https://api.att.com\"") 30 | .append(" }") 31 | .append(" }") 32 | .append("} ") 33 | .toString(); 34 | 35 | JSONObject jobj = new JSONObject(jstr); 36 | 37 | SMSSendResponse response = SMSSendResponse.valueOf(jobj); 38 | 39 | assertEquals(response.getMessageId(), "1"); 40 | assertEquals(response.getResourceUrl(), "https://api.att.com"); 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /sdk/server/java/conf/att-api.properties: -------------------------------------------------------------------------------- 1 | AppKey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 2 | Secret=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 3 | apiHost=https://api.att.com 4 | 5 | authCallbackUrl=https://localhost:4568/att/callback 6 | 7 | # The API scopes this app uses. 8 | clientModelScope=SMS 9 | #NOTIFICATIONCHANNEL 10 | 11 | # Overrides the service's OAuth expires_in value (in seconds), 0 is ignored. 12 | tokenExpireSeconds=0 13 | 14 | # Allow unsafe operations from the client for testing only: 15 | # 1) Client credential token revocation 16 | # 2) Show Notification Channels, Subscriptions, and Notifications without Identifier 17 | enableUnsafeOperations=false 18 | 19 | #set to false to disable SSL Verification 20 | enableSSLCheck=true 21 | 22 | # these files must exist in the MEDIA_DIR 23 | defaultGrammarFile=grammar.srgs 24 | defaultDictionaryFile=dictionary.pls 25 | -------------------------------------------------------------------------------- /sdk/server/java/doc_src/resources/images/att-overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/server/java/doc_src/resources/images/att-overview.png -------------------------------------------------------------------------------- /sdk/server/java/doc_src/resources/images/att.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/server/java/doc_src/resources/images/att.png -------------------------------------------------------------------------------- /sdk/server/java/doc_src/resources/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/server/java/doc_src/resources/images/logo.png -------------------------------------------------------------------------------- /sdk/server/java/doc_src/welcome.css: -------------------------------------------------------------------------------- 1 | /* 2 | - Setting a smaller size for the logo and giving it a border. 3 | */ 4 | 5 | .whats-new img { 6 | width: 150px; 7 | height: 150px; 8 | border: 1px solid #aaa; 9 | } 10 | 11 | /* 12 | 1. Cleared float for better distribution of "document sections" rather than the default layout. 13 | 2. Added some padding and margins to make it look pretty. 14 | */ 15 | 16 | .content-list { 17 | clear: both; 18 | padding-left: 20px; 19 | margin-bottom: 10px; 20 | } 21 | 22 | /* 23 | 1. Hard set width to properly align footer (quick and dirty). 24 | 2. Set a border so "View all" doesn't look like it's doing it's own thing. 25 | 3. Rounded to make it look pretty. 26 | */ 27 | 28 | .sample-apps { 29 | width: 900px !important; 30 | border: 1px solid #ddd; 31 | border-radius: 5px; 32 | } 33 | 34 | /* 35 | This makes sure all of the doc icons play nice and dont clip their containers. 36 | */ 37 | 38 | .sample-apps img { 39 | height: 72px; 40 | } -------------------------------------------------------------------------------- /sdk/server/java/doc_src/welcome.html: -------------------------------------------------------------------------------- 1 |The HTML5 SDK Java Server provides reusable and extend-able server code written in Java. The SDK server takes requests from AttApiClient and sends them to the AT&T API Platform. 12 |
The HTML5 SDK PHP Server provides reusable and extend-able server code written in PHP. The SDK server takes requests from AttApiClient and sends them to the AT&T API Platform. 12 |
© 2013 AT&T Intellectual Property. All rights reserved. http://developer.att.com
\ 17 |The Application hosted on this site are working examples intended to be used for \ 18 | reference in creating products to consume AT&T Services and not meant to be \ 19 | used as part of your product. The data in these pages is for test purposes only \ 20 | and intended only for use as a reference in how the services perform.
\ 21 |For download of tools and documentation, please go to https://developer.att.com
\ 23 |For more information contact developer.support@att.com
' 24 | 25 | } 26 | }); -------------------------------------------------------------------------------- /sdk/webcontent/IMMN/App1/app/view/Header.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @class SampleApp.view.Header 3 | * A class to show the header on each Sample Application. 4 | */ 5 | Ext.define('SampleApp.view.Header', { 6 | extend: 'Ext.Container', 7 | xtype: 'att-header', 8 | 9 | config : { 10 | cls: 'legal-message', 11 | tpl: [ 12 | 'Local Time: {localTime}
', 13 | '
User Agent: {userAgent}
' 14 | ], 15 | data:{ 16 | localTime: new Date(), 17 | userAgent: Ext.browser.userAgent 18 | } 19 | } 20 | }); -------------------------------------------------------------------------------- /sdk/webcontent/IMMN/App1/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |© 2013 AT&T Intellectual Property. All rights reserved. http://developer.att.com
\ 17 |The Application hosted on this site are working examples intended to be used for \ 18 | reference in creating products to consume AT&T Services and not meant to be \ 19 | used as part of your product. The data in these pages is for test purposes only \ 20 | and intended only for use as a reference in how the services perform.
\ 21 |For download of tools and documentation, please go to https://developer.att.com
\ 23 |For more information contact developer.support@att.com
' 24 | 25 | } 26 | }); -------------------------------------------------------------------------------- /sdk/webcontent/SMS/App1/app/view/Header.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @class SampleApp.view.Header 3 | * A class to show the header on each Sample Application. 4 | */ 5 | Ext.define('SampleApp.view.Header', { 6 | extend: 'Ext.Container', 7 | xtype: 'att-header', 8 | 9 | config : { 10 | cls: 'legal-message', 11 | tpl: [ 12 | 'Local Time: {localTime}
', 13 | '
User Agent: {userAgent}
' 14 | ], 15 | data:{ 16 | localTime: new Date(), 17 | userAgent: Ext.browser.userAgent 18 | } 19 | } 20 | }); -------------------------------------------------------------------------------- /sdk/webcontent/SMS/App1/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |© 2013 AT&T Intellectual Property. All rights reserved. http://developer.att.com
\ 17 |The Application hosted on this site are working examples intended to be used for \ 18 | reference in creating products to consume AT&T Services and not meant to be \ 19 | used as part of your product. The data in these pages is for test purposes only \ 20 | and intended only for use as a reference in how the services perform.
\ 21 |For download of tools and documentation, please go to https://developer.att.com
\ 23 |For more information contact developer.support@att.com
' 24 | 25 | } 26 | }); -------------------------------------------------------------------------------- /sdk/webcontent/SMS/App2/app/view/Header.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @class SampleApp.view.Header 3 | * A class to show the header on each Sample Application. 4 | */ 5 | Ext.define('SampleApp.view.Header', { 6 | extend: 'Ext.Container', 7 | xtype: 'att-header', 8 | 9 | config : { 10 | cls: 'legal-message', 11 | tpl: [ 12 | 'Local Time: {localTime}
', 13 | '
User Agent: {userAgent}
' 14 | ], 15 | data:{ 16 | localTime: new Date(), 17 | userAgent: Ext.browser.userAgent 18 | } 19 | } 20 | }); -------------------------------------------------------------------------------- /sdk/webcontent/SMS/App2/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |This AT&T SDK sample requires Sencha Touch http://www.sencha.com/products/touch/download/ (tested with version 2.3.1)
' + 8 | 'You will need to agree to the Sencha software license, then download the code and copy the following files into the webcontent/lib folder:
This AT&T SDK sample requires the AT&T HTML5 SDK file att-api-client.js. Please copy this file from the client folder, to the webcontent/lib folder.
');
13 | }
14 | if (typeof jQuery == "undefined") {
15 | document.write('
This AT&T SDK sample requires the jQuery library. Please download and copy this file to the webcontent/lib folder.
');
16 | }
17 | document.write('
If you choose to run the Java variant of the included SDK server, you will need to recompile it so that the resulting .war file includes these files.
{results}' 22 | ] 23 | } 24 | }); -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/AttApiClientTestConfig.js: -------------------------------------------------------------------------------- 1 | /** 2 | * JavaScript code can call AT&T back-end services using the methods 3 | * on this class. 4 | * @class AttApiClientTestConfig 5 | * @singleton 6 | */ 7 | var AttApiClientTestConfig = { 8 | primaryTestPhoneNumber: '4252832032', 9 | failTestPhoneNumber: '1234567890', 10 | workingNumberMessage: 'This is a message for a number that works', 11 | invalidNumberMessage: 'This number should fail', 12 | smsStatusMessage: 'This is the first SMS status Message', 13 | smsStatusmessage2: 'This is the second SMS status Message', 14 | onlineShortcode: '44628604', 15 | offlineShortcode: '44629060' 16 | }; -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/Main.js: -------------------------------------------------------------------------------- 1 | /** 2 | * List view that displays each of the APIs. 3 | * When the user taps on an API the view for that API appears 4 | */ 5 | Ext.define('KitchenSink.view.Main', { 6 | extend: 'Ext.navigation.View', 7 | 8 | requires: ['KitchenSink.view.NavigationList'], 9 | 10 | config: { 11 | fullscreen : true, 12 | items: [ 13 | { 14 | xtype: 'navigationlist', 15 | title: 'Javascript Testing Framework' 16 | } 17 | ] 18 | } 19 | }); -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/NavigationList.js: -------------------------------------------------------------------------------- 1 | /** 2 | * List view that displays each of the APIs. 3 | * When the user taps on an API the view for that API appears 4 | */ 5 | Ext.define('KitchenSink.view.NavigationList', { 6 | extend: 'Ext.List', 7 | xtype: 'navigationlist', 8 | 9 | requires: [ 10 | 'KitchenSink.view.ClientTest', 11 | 'KitchenSink.view.testSMSonly', 12 | 'KitchenSink.view.testMMSonly', 13 | 'KitchenSink.view.testDConly', 14 | 'KitchenSink.view.testMoboonly', 15 | 'KitchenSink.view.testMIMonly', 16 | 'KitchenSink.view.testBasiconly', 17 | 'KitchenSink.view.testPositiveonly', 18 | 'KitchenSink.view.testNegativeonly', 19 | 'KitchenSink.view.testMixedonly', 20 | 'KitchenSink.view.testPairwiseonly' 21 | ], 22 | 23 | config: { 24 | title: 'AT&T APIs', 25 | data: [ 26 | {text: 'Test SMS', id: 'attTestSMS'}, 27 | {text: 'Test MMS', id: 'attTestMMS'}, 28 | {text: 'Test DC', id: 'attTestDC'}, 29 | {text: 'Test MIM', id: 'attTestMIM'}, 30 | {text: 'Test Mobo', id: 'attTestMobo'}, 31 | {text: 'Test Basic', id: 'attTestBasic'}, 32 | // {text: 'Test Pairwise', id: 'attTestPairwise'}, 33 | {text: 'Test Positive', id: 'attTestPositive'}, 34 | {text: 'Test Negative', id: 'attTestNegative'}, 35 | // {text: 'Test Mixed', id: 'attTestMixed'}, 36 | {text: 'Test All', id: 'attTST'}, 37 | ] 38 | } 39 | }); 40 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/phone/Main.js: -------------------------------------------------------------------------------- 1 | /** 2 | * This is the main view for the Phone profile 3 | */ 4 | Ext.define('KitchenSink.view.phone.Main', { 5 | extend: 'KitchenSink.view.Main' 6 | }); -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/testBasiconly.js: -------------------------------------------------------------------------------- 1 | Ext.define('KitchenSink.view.testBasiconly', { 2 | extend: 'Ext.Container', 3 | xtype: 'attTestBasic', 4 | 5 | requires: [ 6 | 'Att.Provider', 7 | 'KitchenSink.view.config' 8 | ], 9 | 10 | config: { 11 | provider: undefined, 12 | title: 'Test Basic', 13 | layout: { 14 | type: 'vbox', 15 | pack: 'center', 16 | align: 'center' 17 | }, 18 | items: { 19 | xtype: 'container', 20 | width: '80%', 21 | items:[{ 22 | xtype: 'fieldset', 23 | defaults: { 24 | labelWidth: 120 25 | }, 26 | items: [ 27 | 28 | ] 29 | }, { 30 | xtype: 'button', 31 | text: 'Test Basic', 32 | action: 'attTest', 33 | style: 'margin-bottom: 10px;' 34 | }] 35 | }, 36 | control: { 37 | 'button[action=attTest]': { 38 | tap: 'onPush' 39 | } 40 | } 41 | }, 42 | 43 | onPush: function() { 44 | provider = Ext.create('Att.Provider',{ 45 | apiBasePath: '/att' 46 | }); 47 | var cfg = KitchenSink.view.config; 48 | Ext.Viewport.hide(); 49 | //oAuth(); 50 | //basicADSTests(cfg); 51 | //basicSMSTests(cfg); 52 | //basicMMSTests(cfg); 53 | //basicDCTests(cfg); 54 | //basicSpeechTests(cfg); 55 | //basicMoboTests(cfg); 56 | //basicMimTests(cfg); 57 | } 58 | }); 59 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/testDConly.js: -------------------------------------------------------------------------------- 1 | Ext.define('KitchenSink.view.testDConly', { 2 | extend: 'Ext.Container', 3 | xtype: 'attTestDC', 4 | 5 | requires: [ 6 | 'Att.Provider', 7 | 'KitchenSink.view.config' 8 | ], 9 | 10 | config: { 11 | provider: undefined, 12 | title: 'Test DC', 13 | layout: { 14 | type: 'vbox', 15 | pack: 'center', 16 | align: 'center' 17 | }, 18 | items: { 19 | xtype: 'container', 20 | width: '80%', 21 | items:[{ 22 | xtype: 'fieldset', 23 | defaults: { 24 | labelWidth: 120 25 | }, 26 | items: [ 27 | 28 | ] 29 | }, { 30 | xtype: 'button', 31 | text: 'Test DC', 32 | action: 'attTest', 33 | style: 'margin-bottom: 10px;' 34 | }] 35 | }, 36 | control: { 37 | 'button[action=attTest]': { 38 | tap: 'onPush' 39 | } 40 | } 41 | }, 42 | 43 | onPush: function() { 44 | provider = Ext.create('Att.Provider',{ 45 | apiBasePath: '/att' 46 | }); 47 | var cfg = KitchenSink.view.config 48 | Ext.Viewport.hide(); 49 | oAuth(); 50 | basicDCTests(cfg); 51 | positiveDCTests(cfg); 52 | negativeDCTests(cfg); 53 | //pairwiseDCTests(cfg); 54 | } 55 | }); 56 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/testIsolatedonly.js: -------------------------------------------------------------------------------- 1 | Ext.define('KitchenSink.view.testIsolatedonly', { 2 | extend: 'Ext.Container', 3 | xtype: 'attTestIsolated', 4 | 5 | requires: [ 6 | 'Att.Provider', 7 | 'KitchenSink.view.config' 8 | ], 9 | 10 | config: { 11 | provider: undefined, 12 | title: 'Test Isolated', 13 | layout: { 14 | type: 'vbox', 15 | pack: 'center', 16 | align: 'center' 17 | }, 18 | items: { 19 | xtype: 'container', 20 | width: '80%', 21 | items:[{ 22 | xtype: 'fieldset', 23 | defaults: { 24 | labelWidth: 120 25 | }, 26 | items: [ 27 | 28 | ] 29 | }, { 30 | xtype: 'button', 31 | text: 'Test Isolated', 32 | action: 'attTest', 33 | style: 'margin-bottom: 10px;' 34 | }] 35 | }, 36 | control: { 37 | 'button[action=attTest]': { 38 | tap: 'onPush' 39 | } 40 | } 41 | }, 42 | 43 | onPush: function() { 44 | provider = Ext.create('Att.Provider',{ 45 | apiBasePath: '/att' 46 | }); 47 | var cfg = KitchenSink.view.config; 48 | Ext.Viewport.hide(); 49 | basicIsolatedTests(cfg); 50 | //positiveIsolatedTests(cfg); 51 | //negativeIsolatedTests(cfg); 52 | 53 | } 54 | }); 55 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/testMIMonly.js: -------------------------------------------------------------------------------- 1 | Ext.define('KitchenSink.view.testMIMonly', { 2 | extend: 'Ext.Container', 3 | xtype: 'attTestMIM', 4 | 5 | requires: [ 6 | 'Att.Provider', 7 | 'KitchenSink.view.config' 8 | ], 9 | 10 | config: { 11 | provider: undefined, 12 | title: 'Test MIM', 13 | layout: { 14 | type: 'vbox', 15 | pack: 'center', 16 | align: 'center' 17 | }, 18 | items: { 19 | xtype: 'container', 20 | width: '80%', 21 | items:[{ 22 | xtype: 'fieldset', 23 | defaults: { 24 | labelWidth: 120 25 | }, 26 | items: [ 27 | 28 | ] 29 | }, { 30 | xtype: 'button', 31 | text: 'Test MIM', 32 | action: 'attTest', 33 | style: 'margin-bottom: 10px;' 34 | }] 35 | }, 36 | control: { 37 | 'button[action=attTest]': { 38 | tap: 'onPush' 39 | } 40 | } 41 | }, 42 | 43 | onPush: function() { 44 | provider = Ext.create('Att.Provider',{ 45 | apiBasePath: '/att' 46 | }); 47 | var cfg = KitchenSink.view.config; 48 | Ext.Viewport.hide(); 49 | basicMimTests(cfg); 50 | positiveMimTests(cfg); 51 | negativeMimTests(cfg); 52 | //pairwiseMimTests(cfg); 53 | } 54 | }); 55 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/testMMSonly.js: -------------------------------------------------------------------------------- 1 | Ext.define('KitchenSink.view.testMMSonly', { 2 | extend: 'Ext.Container', 3 | xtype: 'attTestMMS', 4 | 5 | requires: [ 6 | 'Att.Provider', 7 | 'KitchenSink.view.config' 8 | ], 9 | 10 | config: { 11 | provider: undefined, 12 | title: 'Test MMS', 13 | layout: { 14 | type: 'vbox', 15 | pack: 'center', 16 | align: 'center' 17 | }, 18 | items: { 19 | xtype: 'container', 20 | width: '80%', 21 | items:[{ 22 | xtype: 'fieldset', 23 | defaults: { 24 | labelWidth: 120 25 | }, 26 | items: [ 27 | 28 | ] 29 | }, { 30 | xtype: 'button', 31 | text: 'Test MMS', 32 | action: 'attTest', 33 | style: 'margin-bottom: 10px;' 34 | }] 35 | }, 36 | control: { 37 | 'button[action=attTest]': { 38 | tap: 'onPush' 39 | } 40 | } 41 | }, 42 | 43 | onPush: function() { 44 | provider = Ext.create('Att.Provider',{ 45 | apiBasePath: '/att' 46 | }); 47 | var cfg = KitchenSink.view.config; 48 | Ext.Viewport.hide(); 49 | basicMMSTests(cfg); 50 | positiveMMSTests(cfg); 51 | negativeMMSTests(cfg); 52 | //pairwiseMMSTests(cfg); 53 | } 54 | }); 55 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/testMixedonly.js: -------------------------------------------------------------------------------- 1 | Ext.define('KitchenSink.view.testMixedonly', { 2 | extend: 'Ext.Container', 3 | xtype: 'attTestMixed', 4 | 5 | requires: [ 6 | 'Att.Provider', 7 | 'KitchenSink.view.config' 8 | ], 9 | 10 | config: { 11 | provider: undefined, 12 | title: 'Test Mixed', 13 | layout: { 14 | type: 'vbox', 15 | pack: 'center', 16 | align: 'center' 17 | }, 18 | items: { 19 | xtype: 'container', 20 | width: '80%', 21 | items:[{ 22 | xtype: 'fieldset', 23 | defaults: { 24 | labelWidth: 120 25 | }, 26 | items: [ 27 | 28 | ] 29 | }, { 30 | xtype: 'button', 31 | text: 'Test Mixed', 32 | action: 'attTest', 33 | style: 'margin-bottom: 10px;' 34 | }] 35 | }, 36 | control: { 37 | 'button[action=attTest]': { 38 | tap: 'onPush' 39 | } 40 | } 41 | }, 42 | 43 | onPush: function() { 44 | provider = Ext.create('Att.Provider',{ 45 | apiBasePath: '/att' 46 | }); 47 | var cfg = KitchenSink.view.config; 48 | Ext.Viewport.hide(); 49 | mixedTests(cfg); 50 | 51 | } 52 | }); 53 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/testMoboonly.js: -------------------------------------------------------------------------------- 1 | Ext.define('KitchenSink.view.testMoboonly', { 2 | extend: 'Ext.Container', 3 | xtype: 'attTestMobo', 4 | 5 | requires: [ 6 | 'Att.Provider', 7 | 'KitchenSink.view.config' 8 | ], 9 | 10 | config: { 11 | provider: undefined, 12 | title: 'Test Mobo', 13 | layout: { 14 | type: 'vbox', 15 | pack: 'center', 16 | align: 'center' 17 | }, 18 | items: { 19 | xtype: 'container', 20 | width: '80%', 21 | items:[{ 22 | xtype: 'fieldset', 23 | defaults: { 24 | labelWidth: 120 25 | }, 26 | items: [ 27 | 28 | ] 29 | }, { 30 | xtype: 'button', 31 | text: 'Test Mobo', 32 | action: 'attTest', 33 | style: 'margin-bottom: 10px;' 34 | }] 35 | }, 36 | control: { 37 | 'button[action=attTest]': { 38 | tap: 'onPush' 39 | } 40 | } 41 | }, 42 | 43 | onPush: function() { 44 | provider = Ext.create('Att.Provider',{ 45 | apiBasePath: '/att' 46 | }); 47 | var cfg = KitchenSink.view.config; 48 | Ext.Viewport.hide(); 49 | oAuth(); 50 | basicMoboTests(cfg); 51 | positiveMoboTests(cfg); 52 | negativeMoboTests(cfg); 53 | //pairwiseMoboTests(cfg); 54 | } 55 | }); 56 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/testNegativeonly.js: -------------------------------------------------------------------------------- 1 | Ext.define('KitchenSink.view.testNegativeonly', { 2 | extend: 'Ext.Container', 3 | xtype: 'attTestNegative', 4 | 5 | requires: [ 6 | 'Att.Provider', 7 | 'KitchenSink.view.config' 8 | ], 9 | 10 | config: { 11 | provider: undefined, 12 | title: 'Test Negative', 13 | layout: { 14 | type: 'vbox', 15 | pack: 'center', 16 | align: 'center' 17 | }, 18 | items: { 19 | xtype: 'container', 20 | width: '80%', 21 | items:[{ 22 | xtype: 'fieldset', 23 | defaults: { 24 | labelWidth: 120 25 | }, 26 | items: [ 27 | 28 | ] 29 | }, { 30 | xtype: 'button', 31 | text: 'Test Negative', 32 | action: 'attTest', 33 | style: 'margin-bottom: 10px;' 34 | }] 35 | }, 36 | control: { 37 | 'button[action=attTest]': { 38 | tap: 'onPush' 39 | } 40 | } 41 | }, 42 | 43 | onPush: function() { 44 | provider = Ext.create('Att.Provider',{ 45 | apiBasePath: '/att' 46 | }); 47 | var cfg = KitchenSink.view.config; 48 | Ext.Viewport.hide(); 49 | oAuth(); 50 | negativeSMSTests(cfg); 51 | negativeMMSTests(cfg); 52 | negativeWAPTests(cfg); 53 | negativeTLTests(cfg); 54 | negativeDCTests(cfg); 55 | negativeTransactionsTests(cfg); 56 | negativeSubscriptionsTests(cfg); 57 | //negativeSpeechTests(cfg); 58 | //negativeMoboTests(cfg); 59 | negativeMimTests(cfg); 60 | } 61 | }); 62 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/testPairwiseonly.js: -------------------------------------------------------------------------------- 1 | Ext.define('KitchenSink.view.testPairwiseonly', { 2 | extend: 'Ext.Container', 3 | xtype: 'attTestPairwise', 4 | 5 | requires: [ 6 | 'Att.Provider', 7 | 'KitchenSink.view.config' 8 | ], 9 | 10 | config: { 11 | provider: undefined, 12 | title: 'Test Pairwise', 13 | layout: { 14 | type: 'vbox', 15 | pack: 'center', 16 | align: 'center' 17 | }, 18 | items: { 19 | xtype: 'container', 20 | width: '80%', 21 | items:[{ 22 | xtype: 'fieldset', 23 | defaults: { 24 | labelWidth: 120 25 | }, 26 | items: [ 27 | 28 | ] 29 | }, { 30 | xtype: 'button', 31 | text: 'Test Pairwise', 32 | action: 'attTest', 33 | style: 'margin-bottom: 10px;' 34 | }] 35 | }, 36 | control: { 37 | 'button[action=attTest]': { 38 | tap: 'onPush' 39 | } 40 | } 41 | }, 42 | 43 | onPush: function() { 44 | provider = Ext.create('Att.Provider',{ 45 | apiBasePath: '/att' 46 | }); 47 | var cfg = KitchenSink.view.config; 48 | Ext.Viewport.hide(); 49 | //pairwiseSMSTests(cfg); 50 | //pairwiseMMSTests(cfg); 51 | //pairwiseDCTests(cfg); 52 | //pairwiseSpeechTests(cfg); 53 | //pairwiseMoboTests(cfg); 54 | //pairwiseMimTests(cfg); 55 | } 56 | }); 57 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/testPositiveonly.js: -------------------------------------------------------------------------------- 1 | Ext.define('KitchenSink.view.testPositiveonly', { 2 | extend: 'Ext.Container', 3 | xtype: 'attTestPositive', 4 | 5 | requires: [ 6 | 'Att.Provider', 7 | 'KitchenSink.view.config' 8 | ], 9 | 10 | config: { 11 | provider: undefined, 12 | title: 'Test Positive', 13 | layout: { 14 | type: 'vbox', 15 | pack: 'center', 16 | align: 'center' 17 | }, 18 | items: { 19 | xtype: 'container', 20 | width: '80%', 21 | items:[{ 22 | xtype: 'fieldset', 23 | defaults: { 24 | labelWidth: 120 25 | }, 26 | items: [ 27 | 28 | ] 29 | }, { 30 | xtype: 'button', 31 | text: 'Test Positive', 32 | action: 'attTest', 33 | style: 'margin-bottom: 10px;' 34 | }] 35 | }, 36 | control: { 37 | 'button[action=attTest]': { 38 | tap: 'onPush' 39 | } 40 | } 41 | }, 42 | 43 | onPush: function() { 44 | provider = Ext.create('Att.Provider',{ 45 | apiBasePath: '/att' 46 | }); 47 | var cfg = KitchenSink.view.config; 48 | Ext.Viewport.hide(); 49 | oAuth(); 50 | positiveSMSTests(cfg); 51 | positiveMMSTests(cfg); 52 | positiveDCTests(cfg); 53 | //positiveSpeechTests(cfg); 54 | //positiveMoboTests(cfg); 55 | //positiveMimTests(cfg); 56 | } 57 | }); 58 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/testSMSonly.js: -------------------------------------------------------------------------------- 1 | Ext.define('KitchenSink.view.testSMSonly', { 2 | extend: 'Ext.Container', 3 | xtype: 'attTestSMS', 4 | 5 | requires: [ 6 | 'Att.Provider', 7 | 'KitchenSink.view.config' 8 | ], 9 | 10 | config: { 11 | provider: undefined, 12 | title: 'Test SMS', 13 | layout: { 14 | type: 'vbox', 15 | pack: 'center', 16 | align: 'center' 17 | }, 18 | items: { 19 | xtype: 'container', 20 | width: '80%', 21 | items:[{ 22 | xtype: 'fieldset', 23 | defaults: { 24 | labelWidth: 120 25 | }, 26 | items: [ 27 | 28 | ] 29 | }, { 30 | xtype: 'button', 31 | text: 'Test SMS', 32 | action: 'attTest', 33 | style: 'margin-bottom: 10px;' 34 | }] 35 | }, 36 | control: { 37 | 'button[action=attTest]': { 38 | tap: 'onPush' 39 | } 40 | } 41 | }, 42 | 43 | onPush: function() { 44 | provider = Ext.create('Att.Provider',{ 45 | apiBasePath: '/att' 46 | }); 47 | var cfg = KitchenSink.view.config; 48 | Ext.Viewport.hide(); 49 | basicSMSTests(cfg); 50 | positiveSMSTests(cfg); 51 | negativeSMSTests(cfg); 52 | //pairwiseSMSTests(cfg); 53 | } 54 | }); 55 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/testTLonly.js: -------------------------------------------------------------------------------- 1 | Ext.define('KitchenSink.view.testTLonly', { 2 | extend: 'Ext.Container', 3 | xtype: 'attTestTL', 4 | 5 | requires: [ 6 | 'Att.Provider', 7 | 'KitchenSink.view.config' 8 | ], 9 | 10 | config: { 11 | provider: undefined, 12 | title: 'Test TL', 13 | layout: { 14 | type: 'vbox', 15 | pack: 'center', 16 | align: 'center' 17 | }, 18 | items: { 19 | xtype: 'container', 20 | width: '80%', 21 | items:[{ 22 | xtype: 'fieldset', 23 | defaults: { 24 | labelWidth: 120 25 | }, 26 | items: [ 27 | 28 | ] 29 | }, { 30 | xtype: 'button', 31 | text: 'Test TL', 32 | action: 'attTest', 33 | style: 'margin-bottom: 10px;' 34 | }] 35 | }, 36 | control: { 37 | 'button[action=attTest]': { 38 | tap: 'onPush' 39 | } 40 | } 41 | }, 42 | 43 | onPush: function() { 44 | provider = Ext.create('Att.Provider',{ 45 | apiBasePath: '/att' 46 | }); 47 | var cfg = KitchenSink.view.config; 48 | Ext.Viewport.hide(); 49 | oAuth(); 50 | basicTLTests(cfg); 51 | positiveTLTests(cfg); 52 | negativeTLTests(cfg); 53 | //pairwiseTLTests(cfg); 54 | } 55 | }); 56 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/app/view/testWAPonly.js: -------------------------------------------------------------------------------- 1 | Ext.define('KitchenSink.view.testWAPonly', { 2 | extend: 'Ext.Container', 3 | xtype: 'attTestWAP', 4 | 5 | requires: [ 6 | 'Att.Provider', 7 | 'KitchenSink.view.config' 8 | ], 9 | 10 | config: { 11 | provider: undefined, 12 | title: 'Test WAP', 13 | layout: { 14 | type: 'vbox', 15 | pack: 'center', 16 | align: 'center' 17 | }, 18 | items: { 19 | xtype: 'container', 20 | width: '80%', 21 | items:[{ 22 | xtype: 'fieldset', 23 | defaults: { 24 | labelWidth: 120 25 | }, 26 | items: [ 27 | 28 | ] 29 | }, { 30 | xtype: 'button', 31 | text: 'Test WAP', 32 | action: 'attTest', 33 | style: 'margin-bottom: 10px;' 34 | }] 35 | }, 36 | control: { 37 | 'button[action=attTest]': { 38 | tap: 'onPush' 39 | } 40 | } 41 | }, 42 | 43 | onPush: function() { 44 | provider = Ext.create('Att.Provider',{ 45 | apiBasePath: '/att' 46 | }); 47 | var cfg = KitchenSink.view.config; 48 | Ext.Viewport.hide(); 49 | basicWAPTests(cfg); 50 | positiveWAPTests(cfg); 51 | negativeWAPTests(cfg); 52 | //pairwiseWAPTests(); 53 | } 54 | }); 55 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/docs/Automatic Client Authorization App (to speed up testing).docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/docs/Automatic Client Authorization App (to speed up testing).docx -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/docs/JTF2 Instructions.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/docs/JTF2 Instructions.doc -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/docs/Launch and deploy ATT Sencha SDK Java Sample Applications.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/docs/Launch and deploy ATT Sencha SDK Java Sample Applications.pdf -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/examples/sms/app/app.js: -------------------------------------------------------------------------------- 1 | /** 2 | * set loader configuration enabled 3 | */ 4 | Ext.Loader.setConfig({ 5 | enabled: true 6 | }); 7 | 8 | /** 9 | * configure location for the Att library 10 | */ 11 | Ext.Loader.setPath({ 12 | 'Att': '../../app/lib' 13 | }); 14 | 15 | /** 16 | * creates the application for SMS example 17 | */ 18 | Ext.application({ 19 | name: 'SmsOnly', 20 | 21 | //declare controllers 22 | controllers: ['Sms'], 23 | 24 | //declare views 25 | views: ['Sms'], 26 | 27 | //launch app 28 | launch: function() { 29 | 30 | var view = Ext.create('SmsOnly.view.Sms'); 31 | 32 | //add sms view to viewport 33 | Ext.Viewport.add(view); 34 | } 35 | }); -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/images/att-logo-developer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/images/att-logo-developer.png -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | This page has been renamed to start.html 9 | 10 | 11 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/qunit.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/qunit.js -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/icons/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/icons/Icon.png -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/icons/Icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/icons/Icon@2x.png -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/icons/Icon~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/icons/Icon~ipad.png -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/icons/Icon~ipad@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/icons/Icon~ipad@2x.png -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/icons/iTunesArtwork.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/icons/iTunesArtwork.png -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/icons/icon-spot~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/icons/icon-spot~ipad.png -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/loading/Default-LandscapeLeft~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/loading/Default-LandscapeLeft~ipad.png -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/loading/Default-LandscapeRight~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/loading/Default-LandscapeRight~ipad.png -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/loading/Default-Landscape~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/loading/Default-Landscape~ipad.png -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/loading/Default-PortraitUpsideDown~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/loading/Default-PortraitUpsideDown~ipad.png -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/loading/Default-Portrait~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/loading/Default-Portrait~ipad.png -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/loading/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/loading/Default.png -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/loading/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/loading/Default@2x.png -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/loading/Default~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/loading/Default~ipad.png -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/loading/Homescreen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/loading/Homescreen.jpg -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/loading/Homescreen~ipad.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/attdevsupport/att-html5-sdk/7b644b9da043cdb5233a43ddd4994ae12988168f/sdk/webcontent/qUnit/resources/loading/Homescreen~ipad.jpg -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | @import 'sencha-touch/default/all'; 2 | 3 | // You may remove any of the following modules that you 4 | // do not use in order to create a smaller css file. 5 | @include sencha-panel; 6 | @include sencha-buttons; 7 | @include sencha-sheet; 8 | @include sencha-picker; 9 | @include sencha-tabs; 10 | @include sencha-toolbar; 11 | @include sencha-toolbar-forms; 12 | @include sencha-indexbar; 13 | @include sencha-list; 14 | @include sencha-layout; 15 | @include sencha-carousel; 16 | @include sencha-form; 17 | @include sencha-msgbox; 18 | 19 | // Your custom code goes here... -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/resources/sass/config.rb: -------------------------------------------------------------------------------- 1 | # Get the directory that this configuration file exists in 2 | dir = File.dirname(__FILE__) 3 | 4 | # Load the sencha-touch framework automatically. 5 | load File.join(dir, '..', '..', 'sdk', 'resources', 'themes') 6 | 7 | # Compass configurations 8 | sass_path = dir 9 | css_path = File.join(dir, "..", "css") 10 | 11 | # Require any additional compass plugins here. 12 | images_dir = File.join(dir, "..", "images") 13 | output_style = :compressed 14 | environment = :production 15 | -------------------------------------------------------------------------------- /sdk/webcontent/qUnit/start.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |