Skip to content

Instantly share code, notes, and snippets.

View balvinder294's full-sized avatar
๐Ÿ˜Ž
Working Remotey

Balvinder Singh balvinder294

๐Ÿ˜Ž
Working Remotey
View GitHub Profile
@balvinder294
balvinder294 / zoom-global-dial-in-numbers-dto.java
Last active January 29, 2021 15:59
DTO for handling response for Zoom meeting Global Dial In numbers fields - https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting | By https://tekraze.com
package xyz;
import java.io.Serializable;
public class ZoomGlobalDialInNumbersDTO implements Serializable {
private static final long serialVersionUID = 1L;
private String country;
package xyz;
import java.io.Serializable;
public class ZoomInterpreterDTO implements Serializable {
private static final long serialVersionUID = 1L;
public String email;
public String languages;
package xyz;
import java.io.Serializable;
public class ZoomMeetingOccurenceDTO implements Serializable {
private static final long serialVersionUID = 1L;
private String occurrence_id;
package xyz;
import java.io.Serializable;
public class ZoomMeetingRecurrenceDTO implements Serializable {
private static final long serialVersionUID = 1L;
private Integer type;
package xyz;
import java.io.Serializable;
import java.util.List;
public class ZoomMeetingSettingsDTO implements Serializable {
private static final long serialVersionUID = 1L;
private Boolean host_video;
package xyz;
public class ZoomMeetingTrackingFieldsDTO {
public String field;
public String value;
public Boolean visible;
public String getField() {
package dehaze.mvp.service.dto.zoom;
import java.io.Serializable;
import java.util.List;
public class ZoomMeetingObjectDTO implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
package xyz;
import java.io.Serializable;
import java.util.List;
public class ZoomMeetingsListResponseDTO implements Serializable {
private static final long serialVersionUID = -218290644483495371L;
private Integer page_size;
@balvinder294
balvinder294 / do-authorization.ts
Created January 15, 2021 08:10
Sample method to do social media login authorization in popup window and get credentials from url
doAuthorization(url: string, socialMediaProvider: string, isRegisterAction: boolean) {
/* isRegisterAction flag i am using to check if the process is for registration or Login */
/* socialMediaProvider is for name of social media , it is optional*/
let loopCount = this.loopCount;
/* Create the window object by passing url and optional window title */
this.windowHandle = this.createOauthWindow(authorizationUrl, 'OAuth login');
@balvinder294
balvinder294 / app-role.directive.ts
Created September 7, 2020 07:49
Role based component Display in Angular with directive
import { Component } from '@angular/core';
import { Directive, Input, TemplateRef, ViewContainerRef, OnDestroy } from '@angular/core';
import { Subscription } from 'rxjs';
/**
* @whatItDoes Conditionally includes an HTML element if current user has any
* of the roles passed as the `expression`.
*
* @howToUse
* ```