Git Repository Public Repository

CPE_learningsite

URLs

Copy to Clipboard

This repository has no backups
This repository's network speed is throttled to 100KB/sec

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using CPE.App.Web.Elucidat;
using CPE.App.Web.Models;
using Newtonsoft.Json;
using System.Security.Cryptography;

namespace CPE.App.Web.Helpers
{
    public static class ElucidatMeetingConnection
    {
        public static EludicatClient GetElucidatClient()
        {
            
            string publicKey = ConfigurationManager.AppSettings["Elucidat.PublicKey"];
            string secretKey = ConfigurationManager.AppSettings["Elucidat.SecretKey"];
            string baseUrl = ConfigurationManager.AppSettings["Elucidat.BaseUrl"];
            var simulationMode = false;
            var client = new EludicatClient(publicKey, secretKey, simulationMode, baseUrl);
            return client;
        }

        public static ReleaseModel GetReleaseDetails(string releasecode)
        {
            return GetElucidatClient().GetRelease(releasecode);
        }


        public static string GetLaunchLink(string releaseCode)
        {

            return JsonConvert.SerializeObject(GetElucidatClient().GetLaunchLink(releaseCode).Url, Formatting.Indented);
        }

        public static string GetLaunchLink(string releaseCode, string firstname, string lastname, string email)
        {


            return JsonConvert.SerializeObject(GetElucidatClient().GetLaunchLink(releaseCode, firstname, lastname, email).Url, Formatting.Indented);
        }
        public static string CreateRelease(ReleaseSettingModel settings)
        {
            return JsonConvert.SerializeObject(GetElucidatClient().CreateRelease(settings).Message, Formatting.Indented);
        }

    }
}

Commits for CPE_learningsiteCPE/CPE.App/CPE.App.Web/Helpers/ElucidatMeetingConnection.cs

Diff revisions: vs.
Revision Author Commited Message
4cd176 ... v.shishlov Fri 27 Aug, 2021 14:33:17 +0000

initial commit