Пример #1
0
        static void LogMessage(IntPtr @session, IntPtr @data)
        {
            var context = GetListener(session);

            context.Listener.LogMessage(context.Session, SpotifyMarshalling.Utf8ToString(data));
        }
Пример #2
0
        static void CredentialsBlobUpdated(IntPtr @session, IntPtr @blob)
        {
            var context = GetListener(session);

            context.Listener.CredentialsBlobUpdated(context.Session, SpotifyMarshalling.Utf8ToString(blob));
        }
Пример #3
0
        static void MessageToUser(IntPtr @session, IntPtr @message)
        {
            var context = GetListener(session);

            context.Listener.MessageToUser(context.Session, SpotifyMarshalling.Utf8ToString(message));
        }
Пример #4
0
 public static string ErrorMessage(SpotifyError error)
 {
     return(SpotifyMarshalling.Utf8ToString(NativeMethods.sp_error_message(error)));
 }
Пример #5
0
 public static string BuildId()
 {
     return(SpotifyMarshalling.Utf8ToString(NativeMethods.sp_build_id()));
 }
Пример #6
0
        static void track_message_changed(IntPtr @pl, int @position, IntPtr @message, IntPtr @userdata)
        {
            var context = GetListener(pl, userdata);

            context.Listener.TrackMessageChanged(context.Playlist, position, SpotifyMarshalling.Utf8ToString(message), context.Userdata);
        }
Пример #7
0
        static void description_changed(IntPtr @pl, IntPtr @desc, IntPtr @userdata)
        {
            var context = GetListener(pl, userdata);

            context.Listener.DescriptionChanged(context.Playlist, SpotifyMarshalling.Utf8ToString(desc), context.Userdata);
        }