GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Implement Skyper activation call in subscriber settings · Issue #18 · dapnet-core/web

Implement Skyper activation call in subscriber settings #18

New issue
Copy link
New issue
Copy link
Open
Open
Implement Skyper activation call in subscriber settings#18
Copy link

Description

@dh3wr
dh3wr
opened on Feb 14, 2019
Issue body actions

Where Type === SKYPER
Button und Notification-Box

Activity

  1. dh3wr commented on Feb 14, 2019

    @dh3wr
    dh3wr
    on Feb 14, 2019
    MemberAuthor
    More actions
    @Override
    	public PagerMessage createMessageFromActivation(Activation activation) {
    		List<String> activationCode = Arrays.asList(settings.getActivationCode().split(","));
    		StringBuilder sb = new StringBuilder();
    		for (int i = 0; i < activationCode.size(); ++i) {
    			List<String> activationSubCode = Arrays.asList(activationCode.get(i).split(" "));
    			if (activationSubCode.size() != 3) {
    				return null;
    			}
    
    			int shift = Integer.parseInt(activationSubCode.get(0));
    			int mask = Integer.parseInt(activationSubCode.get(1));
    			int offset = Integer.parseInt(activationSubCode.get(2));
    
    			int cInt = ((activation.getNumber() >> shift) & mask) + offset;
    			char c = (char) cInt;
    			sb.append(String.valueOf(c));
    		}
    
    		return new PagerMessage(sb.toString(), activation.getNumber(), PagerMessage.MessagePriority.ACTIVATION,
    				PagerMessage.FunctionalBits.ACTIVATION);
    	}
    
  2. dh3wr commented on Feb 14, 2019

    @dh3wr
    dh3wr
    on Feb 14, 2019
    MemberAuthor
    More actions

    private String activationCode = "0 7 50,0 7 34,0 7 53,0 7 51,0 7 51,0 7 52,0 7 52,0 7 52";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.