This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface StorageProvider { | |
get(key: string): Promise<string | null>; | |
set(key: string, value: string): Promise<void>; | |
remove(key: string): Promise<void>; | |
clear(): Promise<void>; | |
} | |
export class WebStorageProvider implements StorageProvider { | |
constructor(private keyPrefix = 'ionic-ac-storage:') { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var app = angular.module('spContact'); | |
app.factory('spAuthService', function ($http, $q) { | |
var authenticate = function (userId, password, url) { | |
var signInurl = 'https://' + url + '/_forms/default.aspx?wa=wsignin1.0'; | |
var deferred = $q.defer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
public class Album | |
{ | |
public int AlbumId { get; set; } | |
public string Genre { get; set; } | |
public string Artist { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Dynamic; | |
namespace ConsoleApplication2 | |
{ | |
class Program | |
{ |