/**
         * Tutorial ructor.
         * <br /><br />
         * Obtain the skypeKit version string, for example:
         * <pre>
         * 2.0/windows-x86-skypekit-novideo_3.1.0.2689_125068
         * </pre>
         * and:
         * <ul>
         *   <li>store it in {@link #versionStr}</li>
         *   <li>split it at the underscores, yielding "2.0/windows-x86-skypekit-novideo",
         *   	"3.1.0.2689", and "125068"</li>
         *   <li>split the version number segment at the periods, yielding "3", "1", "0", and "2689"</li>
         *   <li>store the <i>number</i> of version number components in {@link #versionNumCnt}</li>
         *   <li>store the actual version number components in {@link #versionNums}</li>
         * </ul>
         *
         * @since 1.0
         */
        public ParseSkypeKitVersion(Skype mySkype)
        {
            String[] versionParts;

            ParseSkypeKitVersion.versionStr = mySkype.getVersionString();
            if (ParseSkypeKitVersion.versionStr.Length > 1)
            {
                versionParts = ParseSkypeKitVersion.versionStr.Split('_');

                ParseSkypeKitVersion.versionNums = versionParts[1].Split(new string[] { "\\." }, ParseSkypeKitVersion.versionNumCnt, StringSplitOptions.None);
                /*
                            System.out.println(ParseSkypeKitVersion.versionStr);
                            System.out.println("0: " + versionParts[0]);
                            System.out.println("1: " + versionParts[1]);
                            System.out.println("2: " + versionParts[2]);
                            System.out.println("Major: " + versionNums[0]);
                            System.out.println("Minor: " + versionNums[1]);
                            System.out.println("Patch: " + versionNums[2]);
                            System.out.flush();
                 */
            }
        }
Beispiel #2
0
        /**
         * Tutorial ructor.
         * <br /><br />
         * Obtain the skypeKit version string, for example:
         * <pre>
         * 2.0/windows-x86-skypekit-novideo_3.1.0.2689_125068
         * </pre>
         * and:
         * <ul>
         *   <li>store it in {@link #versionStr}</li>
         *   <li>split it at the underscores, yielding "2.0/windows-x86-skypekit-novideo",
         *      "3.1.0.2689", and "125068"</li>
         *   <li>split the version number segment at the periods, yielding "3", "1", "0", and "2689"</li>
         *   <li>store the <i>number</i> of version number components in {@link #versionNumCnt}</li>
         *   <li>store the actual version number components in {@link #versionNums}</li>
         * </ul>
         *
         * @since 1.0
         */
        public ParseSkypeKitVersion(Skype mySkype)
        {
            String[] versionParts;

            ParseSkypeKitVersion.versionStr = mySkype.getVersionString();
            if (ParseSkypeKitVersion.versionStr.Length > 1)
            {
                versionParts = ParseSkypeKitVersion.versionStr.Split('_');

                ParseSkypeKitVersion.versionNums = versionParts[1].Split(new string[] { "\\." }, ParseSkypeKitVersion.versionNumCnt, StringSplitOptions.None);

                /*
                 *          System.out.println(ParseSkypeKitVersion.versionStr);
                 *          System.out.println("0: " + versionParts[0]);
                 *          System.out.println("1: " + versionParts[1]);
                 *          System.out.println("2: " + versionParts[2]);
                 *          System.out.println("Major: " + versionNums[0]);
                 *          System.out.println("Minor: " + versionNums[1]);
                 *          System.out.println("Patch: " + versionNums[2]);
                 *          System.out.flush();
                 */
            }
        }