本文整理汇总了TypeScript中parse.Parse类的典型用法代码示例。如果您正苦于以下问题:TypeScript Parse类的具体用法?TypeScript Parse怎么用?TypeScript Parse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Parse类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: constructor
constructor(){
Parse.initialize("wQFYcalrOw3YwIQoQ1BcgiMFhGE0tL4P24uKXFDm", "vdPFwegmiQvcnGIrFe09eTCI9oOyxm5buocTBu03");
}
开发者ID:saulmadi,项目名称:acklen-slackbot,代码行数:3,代码来源:parseDB.ts
示例2: require
/// <reference path="../../typings/tsd.d.ts" />
var Parse = require('parse').Parse;
Parse.initialize('', '');
export class ParseManager{
constructor(){
}
getOrders(){
return 'test';
}
getProductsCategory(success: (products) => void)
{
var catClass = Parse.Object.extend("ProductsCategory");
var query = new Parse.Query(catClass);
query.find({
success: function(categories) {
success(categories);
}
});
}
getProducts(category: String, success:(products)=>void)
{
var cat = Parse.Object.extend("ProductsCategory");
//var pro = Parse.Object.extend("Products");
var innerQuery = new Parse.Query(cat);
innerQuery.equalTo("objectId", category);
开发者ID:valero90,项目名称:Angular2-Parse,代码行数:31,代码来源:ParseManager.ts
示例3:
import { PropertyDeveloperPage } from "../pages/property-developer/property-developer"
import { MockProvider } from '../providers/mock/mock';
import { PropertyTypeOwnPage } from '../pages/property-type-own/property-type-own'
import { PropertyTypeRentPage } from '../pages/property-type-rent/property-type-rent'
export const firebaseConfig = {
apiKey: "AIzaSyAakL66pSbJOEXY7dWBstaoKY63yS9eL1w",
authDomain: "propertymanagement-77159.firebaseapp.com",
databaseURL: "https://propertymanagement-77159.firebaseio.com",
projectId: "propertymanagement-77159",
storageBucket: "propertymanagement-77159.appspot.com",
messagingSenderId: "667773470325"
};
Parse.initialize("myAppId");
Parse.serverURL = 'http://localhost:1337/parse';
Parse.masterKey = "secret";
// var parsePush = Parse.push = {
// android: {
// senderId: '894300595996',
// apiKey: 'AIzaSyDV8WQ6g7yvFpHD40E7er99ZtsdRKi-e1k'
// },
// }
Parse.cloud = './cloud/main.js';
// Parse.JavaScriptKey = "fi6LWURzRGmTg7neZfI79MJaB2QHjWhiZ4nVFvKP";
@NgModule({
declarations: [
MyApp,
TabsPage,
开发者ID:cybriz,项目名称:ionic-projects,代码行数:31,代码来源:app.module.ts
注:本文中的parse.Parse类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论